Commit 86e3b8cb authored by Ralf Habacker's avatar Ralf Habacker

Fix coverity check CID 169653: Null pointer dereferences (FORWARD_NULL)

Assigning: "myItem" = "dynamic_cast <UMLListViewItem *>(item)".

CCBUG:340646
parent c4389129
......@@ -2158,6 +2158,8 @@ void UMLListView::slotExpanded(QTreeWidgetItem * item)
void UMLListView::slotCollapsed(QTreeWidgetItem * item)
{
UMLListViewItem * myItem = dynamic_cast<UMLListViewItem*>(item);
if (!myItem)
return;
if (isExpandable(myItem->type())) {
myItem->updateFolder();
}
......
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