Skip to content

Commit

Permalink
Debugger: Fix crash in context menu builder.
Browse files Browse the repository at this point in the history
A value node might not have a location due to e.g. issues resolving its parent.
Guard against this case and simply return early as we won't be able to take any
meaningful actions on such a node. Fixes the second crash listed in #10781.
  • Loading branch information
anevilyak committed Apr 26, 2014
1 parent 667cfcd commit e10e704
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -2042,6 +2042,9 @@ VariablesView::_GetContextActionsForNode(ModelNode* node,
ContextActionList* actions)
{
ValueLocation* location = node->NodeChild()->Location();
if (location == NULL)
return B_OK;

status_t result = B_OK;
BMessage* message = NULL;

Expand Down

0 comments on commit e10e704

Please sign in to comment.