[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg Oliver.Kellogg at t-online.de
Wed Sep 3 05:07:13 UTC 2003


CVS commit by okellogg: 

addAssociation(): Add guard against null pointer.


  M +2 -0      umldoc.cpp   1.58


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.57:1.58
@@ -820,4 +820,6 @@ UMLAssociation* UMLDoc::createUMLAssocia
 void UMLDoc::addAssociation(UMLAssociation *Assoc)
 {
+        if (Assoc == NULL)
+                return;
         // First, check that this association has not already been added.
         // This may happen as long as we are still in transition from the old






More information about the umbrello-devel mailing list