Fix crash in BListValueNode.
- Don't try to create children if location resolution failed.
This commit is contained in:
@@ -307,6 +307,9 @@ BListValueNode::CreateChildren()
|
|||||||
if (fChildrenCreated)
|
if (fChildrenCreated)
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
|
if (fLocationResolutionState != B_OK)
|
||||||
|
return fLocationResolutionState;
|
||||||
|
|
||||||
if (fItemCountType != NULL) {
|
if (fItemCountType != NULL) {
|
||||||
BListItemCountNodeChild* countChild = new(std::nothrow)
|
BListItemCountNodeChild* countChild = new(std::nothrow)
|
||||||
BListItemCountNodeChild(fItemCountLocation, this, fItemCountType);
|
BListItemCountNodeChild(fItemCountLocation, this, fItemCountType);
|
||||||
|
|||||||
Reference in New Issue
Block a user