Commit 8ee3567f authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Check result of calling UMLObject::asUMLClassifierListItem() to avoid crashes.

parent 4bb3b45f
...@@ -1011,6 +1011,8 @@ UMLClassifierListItemList UMLClassifier::getFilteredList(UMLObject::ObjectType o ...@@ -1011,6 +1011,8 @@ UMLClassifierListItemList UMLClassifier::getFilteredList(UMLObject::ObjectType o
continue; continue;
} }
UMLClassifierListItem *listItem = o->asUMLClassifierListItem(); UMLClassifierListItem *listItem = o->asUMLClassifierListItem();
if (!listItem)
continue;
if (ot == UMLObject::ot_UMLObject || listItem->baseType() == ot) { if (ot == UMLObject::ot_UMLObject || listItem->baseType() == ot) {
resultList.append(listItem); resultList.append(listItem);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment