From e8a837faaccabb23e9862e58fc96ee2cc8f356cd Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Mon, 10 Dec 2012 23:12:53 -0500 Subject: [PATCH] Fix crash in BListValueNode. - Don't try to create children if location resolution failed. --- src/apps/debugger/value/value_nodes/BListValueNode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/debugger/value/value_nodes/BListValueNode.cpp b/src/apps/debugger/value/value_nodes/BListValueNode.cpp index bd0073f931..86f3c8e4c9 100644 --- a/src/apps/debugger/value/value_nodes/BListValueNode.cpp +++ b/src/apps/debugger/value/value_nodes/BListValueNode.cpp @@ -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);