Skip to content

Commit

Permalink
Debugger: Fix potential VariablesView crash.
Browse files Browse the repository at this point in the history
- In some contexts, VariablesView doesn't have an associated thread
  and stack frame, which would lead to a potential crash when resolving
  expression nodes.
  • Loading branch information
anevilyak committed Nov 10, 2015
1 parent d6a334f commit 081d56c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
}


Expand Down

0 comments on commit 081d56c

Please sign in to comment.