Tracker: Unchecked dynamic_cast, CID 1032263
This commit is contained in:
parent
1e09ea53e3
commit
08b7ddae76
@ -2064,8 +2064,13 @@ void
|
||||
FindPanel::AddAttrRow()
|
||||
{
|
||||
BBox* box = dynamic_cast<BBox*>(FindView("Box"));
|
||||
BGridView* grid = dynamic_cast<BGridView*>(box->FindView("AttrFields"));
|
||||
|
||||
ASSERT(box != NULL);
|
||||
|
||||
if (box == NULL)
|
||||
return;
|
||||
|
||||
BGridView* grid = dynamic_cast<BGridView*>(box->FindView("AttrFields"));
|
||||
if (grid == NULL) {
|
||||
// reset layout
|
||||
BLayoutBuilder::Group<>(box, B_VERTICAL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user