Skip to content
Snippets Groups Projects
Commit 554d9e43 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Coverity check on master@bd16929, CID 71462: Unchecked dynamic_cast (FORWARD_NULL).

CCBUG:340646
parent 3d110b30
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,10 @@ int CodeClassField::minimumListOccurances()
if (!parentIsAttribute())
{
UMLRole * role = dynamic_cast<UMLRole*>(getParentObject());
if (!role) {
uError() << "no valid parent object";
return -1;
}
QString multi = role->multiplicity();
// ush. IF we had a multiplicty object, this would be much easier.
if (!multi.isEmpty())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment