Fix DTR Null Reference on first login

This commit is contained in:
MidoriKami 2023-09-21 20:46:44 -07:00
parent dc54f040b9
commit 3b5995e6ab

View file

@ -172,7 +172,7 @@ public sealed unsafe class DtrBar : IDisposable, IServiceType, IDtrBar
this.HandleAddedNodes();
var dtr = this.GetDtr();
if (dtr == null) return;
if (dtr == null || dtr->RootNode == null || dtr->RootNode->ChildNode == null) return;
// The collision node on the DTR element is always the width of its content
if (dtr->UldManager.NodeList == null) return;