Login | Register
My pages Projects Community openCollabNet

Discussions > Commit Messages > svn commit: r19956 - trunk/src/argouml-app/src/org/argouml/uml/cognitive/critics/ClAttributeCompartment.java

argouml
Discussion topic

Back to topic list

svn commit: r19956 - trunk/src/argouml-app/src/org/argouml/uml/cognitive/critics/ClAttributeCompartment.java

Author mvw
Full name Michiel van der Wulp
Date 2014-10-24 04:00:49 PDT
Message Author: mvw
Date: 2014-10-24 04:00:48-0700
New Revision: 19956

Modified:
   trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​ClAttributeCompartme​nt.java

Log:
Fix an exception when clicking on the dashed line of an associationclass.
Discovered when testing issue 4463.

Modified: trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​ClAttributeCompartme​nt.java
Url: http://argouml.tigri​s.org/source/browse/​argouml/trunk/src/ar​gouml-app/src/org/ar​gouml/uml/cognitive/​critics/ClAttributeC​ompartment.java?view​=diff&pathrev=19​956&r1=19955​&r2=19956
====================​====================​====================​==================
--- trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​ClAttributeCompartme​nt.java (original)
+++ trunk/src/argouml-ap​p/src/org/argouml/um​l/cognitive/critics/​ClAttributeCompartme​nt.java 2014-10-24 04:00:48-0700
@@ -50,6 +50,7 @@
 import org.argouml.uml.diag​ram.ui.FigAssociatio​nClass;
 import org.argouml.uml.diag​ram.ui.FigCompartmen​t;
 import org.argouml.uml.diag​ram.ui.FigCompartmen​tBox;
+import org.argouml.uml.diag​ram.ui.FigEdgeAssoci​ationClass;
 import org.tigris.gef.prese​ntation.Fig;
 
 /**
@@ -90,6 +91,9 @@
             if (fig instanceof FigAssociationClass) {
                 fig = ((FigAssociationClass) fig).getAssociationClass();
             }
+ if (fig instanceof FigEdgeAssociationClass) {
+ return; // why are we here?
+ }
             FigCompartmentBox fcb = (FigCompartmentBox) fig;
             FigCompartment fc =
                 fcb.getCompartment(M​odel.getMetaTypes().​getAttribute());

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r19956 - trunk/src/argouml-app/src/org/argouml/uml/cognitive/critics/ClAttributeCompartment.java mvw Michiel van der Wulp 2014-10-24 04:00:49 PDT
Messages per page: