BMessageValueNode wasn't taking into account the possibility that type
information was unavailable, leading to a crash when used without a debug libbe being present. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42386 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -299,6 +299,13 @@ BMessageValueNode::CreateChildren()
|
|||||||
Type* whatType = NULL;
|
Type* whatType = NULL;
|
||||||
|
|
||||||
CompoundType* messageType = dynamic_cast<CompoundType*>(fType);
|
CompoundType* messageType = dynamic_cast<CompoundType*>(fType);
|
||||||
|
if (messageType == NULL || messageType->CountDataMembers() == 0) {
|
||||||
|
if (fContainer != NULL)
|
||||||
|
fContainer->NotifyValueNodeChildrenCreated(this);
|
||||||
|
|
||||||
|
return B_OK;
|
||||||
|
}
|
||||||
|
|
||||||
for (int32 i = 0; i < messageType->CountDataMembers(); i++) {
|
for (int32 i = 0; i < messageType->CountDataMembers(); i++) {
|
||||||
member = messageType->DataMemberAt(i);
|
member = messageType->DataMemberAt(i);
|
||||||
if (strcmp(member->Name(), "what") == 0) {
|
if (strcmp(member->Name(), "what") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user