Tracker: check dynamic_cast
This commit is contained in:
parent
fbf61796ca
commit
8fbb387b1b
@ -2769,7 +2769,8 @@ FindPanel::SaveAttrState(BMessage* message, int32 index)
|
||||
|
||||
ASSERT(textControl != NULL);
|
||||
|
||||
message->AddString("attrViewText", textControl->TextView()->Text());
|
||||
if (textControl != NULL)
|
||||
message->AddString("attrViewText", textControl->Text());
|
||||
|
||||
BMenuField* field = dynamic_cast<BMenuField*>(FindAttrView("Logic", index));
|
||||
if (field != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user