Tracker: check dynamic_cast

This commit is contained in:
John Scipione 2014-07-24 22:54:28 -04:00
parent fbf61796ca
commit 8fbb387b1b

View File

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