Debugger: Fix potential VariablesView crash.

- In some contexts, VariablesView doesn't have an associated thread
  and stack frame, which would lead to a potential crash when resolving
  expression nodes.
This commit is contained in:
Rene Gollent
2015-11-10 14:38:26 -05:00
parent d6a334fa21
commit 081d56c4d9
@@ -2560,8 +2560,8 @@ VariablesView::_RequestNodeValue(ModelNode* node)
containerLocker.Unlock();
// request resolution of the value
fListener->ValueNodeValueRequested(fStackFrame->GetCpuState(), container,
valueNode);
fListener->ValueNodeValueRequested(fStackFrame != NULL
? fStackFrame->GetCpuState() : NULL, container, valueNode);
}