Tracker: Check dynamic_cast

This commit is contained in:
John Scipione 2014-07-24 22:56:06 -04:00
parent f0b515eca1
commit 38f3b29c70
1 changed files with 2 additions and 1 deletions

View File

@ -2981,7 +2981,8 @@ FindPanel::GetDefaultAttrName(BString& attrName, int32 row) const
BTextControl* textControl
= dynamic_cast<BTextControl*>(fAttrGrid->ItemAt(2, row)->View());
result << textControl->Text();
if (textControl != NULL)
attrName << textControl->Text();
}