Merge pull request #2446 from nebel/nameplate-gameobj-more-null-checks-p2
Some checks are pending
Build Dalamud / Build on Windows (push) Waiting to run
Build Dalamud / Check API Compatibility (push) Blocked by required conditions
Build Dalamud / Deploy dalamud-distrib staging (push) Blocked by required conditions
Tag Build / Tag Build (push) Successful in 3s

Add yet another check to NamePlateUpdateHander.GameObject
This commit is contained in:
goat 2025-11-04 13:24:13 +01:00 committed by GitHub
commit 97600b1b2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,6 +340,9 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
return null;
}
if (this.ArrayIndex >= this.context.Ui3DModule->NamePlateObjectInfoCount)
return null;
var objectInfoPtr = this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex];
if (objectInfoPtr.Value == null) return null;