Fix crash in BListValueNode.

- Don't try to create children if location resolution failed.
This commit is contained in:
Rene Gollent 2012-12-10 23:12:53 -05:00
parent 0cc8d8ab3e
commit e8a837faac

View File

@ -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);