Skip to content

Commit 0bd15f0

Browse files
committed
Small refactoring oversight
It didn't matter much on our case anyway
1 parent 8d8741b commit 0bd15f0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

External/Plugins/FlashDebugger/Controls/DataTree/VariableNode.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public override string Value
1919
}
2020
set
2121
{
22-
if (m_Value == null)
22+
if (m_Variable == null)
2323
return;
2424

2525
var flashInterface = PluginMain.debugManager.FlashInterface;
@@ -39,8 +39,16 @@ public Variable Variable
3939
if (m_Variable == value) return;
4040

4141
m_Variable = value;
42-
m_Value = m_Variable.getValue();
43-
Text = m_Variable.getName();
42+
if (m_Variable != null)
43+
{
44+
m_Value = m_Variable.getValue();
45+
Text = m_Variable.getName();
46+
}
47+
else
48+
{
49+
m_Value = null;
50+
Text = "";
51+
}
4452
}
4553
}
4654

0 commit comments

Comments
 (0)