fix(DTR): check collision ResNode for null to prevent NRE during login

This commit is contained in:
goaaats 2022-01-31 16:55:42 +01:00
parent 2ebe1a9c19
commit cfa180a505
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -137,6 +137,7 @@ namespace Dalamud.Game.Gui.Dtr
// The collision node on the DTR element is always the width of its content
var collisionNode = dtr->UldManager.NodeList[1];
if (collisionNode == null) return;
var runningXPos = collisionNode->X;
var configuration = Service<DalamudConfiguration>.Get();