Fix crash in BListValueNode.
- Don't try to create children if location resolution failed.
This commit is contained in:
parent
0cc8d8ab3e
commit
e8a837faac
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user