Skip to content

Commit

Permalink
Fix crash in BListValueNode.
Browse files Browse the repository at this point in the history
- Don't try to create children if location resolution failed.
  • Loading branch information
anevilyak committed Dec 11, 2012
1 parent 0cc8d8a commit e8a837f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/debugger/value/value_nodes/BListValueNode.cpp
Expand Up @@ -307,6 +307,9 @@ BListValueNode::CreateChildren()
if (fChildrenCreated)
return B_OK;

if (fLocationResolutionState != B_OK)
return fLocationResolutionState;

if (fItemCountType != NULL) {
BListItemCountNodeChild* countChild = new(std::nothrow)
BListItemCountNodeChild(fItemCountLocation, this, fItemCountType);
Expand Down

0 comments on commit e8a837f

Please sign in to comment.