mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
fix: null ref in addon inspector (#984)
This commit is contained in:
parent
670166e7f8
commit
f5c768f3e5
1 changed files with 8 additions and 3 deletions
|
|
@ -302,14 +302,19 @@ namespace Dalamud.Interface.Internal
|
|||
var popped = false;
|
||||
var isVisible = (node->Flags & 0x10) == 0x10;
|
||||
|
||||
if (isVisible)
|
||||
ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0, 255, 0, 255));
|
||||
|
||||
var componentInfo = compNode->Component->UldManager;
|
||||
|
||||
var childCount = componentInfo.NodeListCount;
|
||||
|
||||
var objectInfo = (AtkUldComponentInfo*)componentInfo.Objects;
|
||||
if (objectInfo == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (isVisible)
|
||||
ImGui.PushStyleColor(ImGuiCol.Text, new Vector4(0, 255, 0, 255));
|
||||
|
||||
if (ImGui.TreeNode($"{treePrefix}{objectInfo->ComponentType} Component Node (ptr = {(long)node:X}, component ptr = {(long)compNode->Component:X}) child count = {childCount} ###{(long)node}"))
|
||||
{
|
||||
if (ImGui.IsItemHovered())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue