[Uml-devel] branches/work/soc-umbrello/umbrello

Ralf Habacker ralf.habacker at gmail.com
Wed Dec 7 12:27:45 UTC 2011


SVN commit 1267651 by habacker:

fixed "Bug 168752 - Crash on new synchronous message in sequence diagram"

commit from trunk r1267643

 M  +5 -3      classifier.cpp  


--- branches/work/soc-umbrello/umbrello/classifier.cpp #1267650:1267651
@@ -187,12 +187,14 @@
         int i = 0;
         for (; i < pCount; ++i) {
             Model_Utils::NameAndType_ListIt nt(params.begin() + i);
-            UMLClassifier *c = dynamic_cast<UMLClassifier*>((*nt).m_type);
+            UMLClassifier *type = dynamic_cast<UMLClassifier*>((*nt).m_type);
             UMLClassifier *testType = testParams.at(i)->getType();
-            if (c == NULL) {  //template parameter
+            if (type == NULL && testType == NULL) { //no parameter type
+                continue;
+            } else if (type == NULL) {  //template parameter
                 if (testType->name() != "class")
                     break;
-            } else if (c != testType)
+            } else if (type != testType)
                 break;
         }
         if (i == pCount)




More information about the umbrello-devel mailing list