mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
fix(DTR): check collision ResNode for null to prevent NRE during login
This commit is contained in:
parent
2ebe1a9c19
commit
cfa180a505
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ namespace Dalamud.Game.Gui.Dtr
|
||||||
|
|
||||||
// The collision node on the DTR element is always the width of its content
|
// The collision node on the DTR element is always the width of its content
|
||||||
var collisionNode = dtr->UldManager.NodeList[1];
|
var collisionNode = dtr->UldManager.NodeList[1];
|
||||||
|
if (collisionNode == null) return;
|
||||||
var runningXPos = collisionNode->X;
|
var runningXPos = collisionNode->X;
|
||||||
|
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue