Tracker: Check dynamic_cast
This commit is contained in:
parent
f0b515eca1
commit
38f3b29c70
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue