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:
@@ -2560,8 +2560,8 @@ VariablesView::_RequestNodeValue(ModelNode* node)
|
|||||||
containerLocker.Unlock();
|
containerLocker.Unlock();
|
||||||
|
|
||||||
// request resolution of the value
|
// request resolution of the value
|
||||||
fListener->ValueNodeValueRequested(fStackFrame->GetCpuState(), container,
|
fListener->ValueNodeValueRequested(fStackFrame != NULL
|
||||||
valueNode);
|
? fStackFrame->GetCpuState() : NULL, container, valueNode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user