svn commit: r15968 - trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-11-05 13:57:13-0800
New Revision: 15968

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java

Log:
Issue 5491: fix illegalArgumentException in Constraints tab if multiple elements selected 

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java?view=diff&rev=15968&p1=trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java&p2=trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java&r1=15967&r2=15968
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/TabConstraints.java	2008-11-05 13:57:13-0800
@@ -192,7 +192,9 @@
 
     private void setTargetInternal(Object oTarget) {
         // Set editor's model
-        mOcleEditor.setModel(new ConstraintModel(oTarget));
+        if (oTarget != null) {
+            mOcleEditor.setModel(new ConstraintModel(oTarget));
+        }
     }
 
     /**
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.