[umbrello-devel] New Defects reported by Coverity Scan for Umbrello UML Modeller

scan-admin at coverity.com scan-admin at coverity.com
Tue Oct 6 15:59:02 UTC 2015


Hi,

Please find the latest report on new defect(s) introduced to Umbrello UML Modeller found with Coverity Scan.

1 new defect(s) introduced to Umbrello UML Modeller found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 152231:  Null pointer dereferences  (NULL_RETURNS)
/home/coverity/src/umbrello/umbrello/umllistview.cpp: 2167 in UMLListView::addNewItem(UMLListViewItem *, UMLListViewItem::ListViewType)()


________________________________________________________________________________________________________
*** CID 152231:  Null pointer dereferences  (NULL_RETURNS)
/home/coverity/src/umbrello/umbrello/umllistview.cpp: 2167 in UMLListView::addNewItem(UMLListViewItem *, UMLListViewItem::ListViewType)()
2161             QString name = classifier->uniqChildName(objectType);
2162             UMLObject* object = Object_Factory::createChildObject(classifier, objectType, name);
2163     
2164             // Handle primary key constraints (mark the unique constraint as PK on
2165             // the parent entity)
2166             if (type == UMLListViewItem::lvt_PrimaryKeyConstraint) {
>>>     CID 152231:  Null pointer dereferences  (NULL_RETURNS)
>>>     Assigning: "uuc" = "object".  Both pointers are now null.
2167                 UMLUniqueConstraint* uuc = static_cast<UMLUniqueConstraint*>(object);
2168                 UMLEntity* ent = static_cast<UMLEntity*>(uuc->parent());
2169                 if (ent) {
2170                     ent->setAsPrimaryKey(uuc);
2171                 }
2172             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/umbrello-uml-modeller?tab=overview

To manage Coverity Scan email notifications for "umbrello-devel at kde.org", click https://scan.coverity.com/subscriptions/edit?email=umbrello-devel%40kde.org&token=5fd61726dd9f6c9e1c4e067b821d8371



More information about the umbrello-devel mailing list