svn commit: r13873 - trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-12-07 10:26:19-0800
New Revision: 13873

Modified:
   trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java

Log:
Issue 4937: Committed patch as supplied by Sergio Lopes.

Modified: trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java?view=diff&rev=13873&p1=trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java&p2=trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java&r1=13872&r2=13873
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/UMLMultiplicityPanel.java	2007-12-07 10:26:19-0800
@@ -181,7 +181,8 @@
 	public void targetSet(TargetEvent e) {
 	    super.targetSet(e);
 	    Object target = getTarget();
-	    boolean exists = Model.getFacade().getMultiplicity(target) != null;
+	    boolean exists = target != null 
+                && Model.getFacade().getMultiplicity(target) != null;
 	    multiplicityComboBox.setEnabled(exists);
 	    multiplicityComboBox.setEditable(exists);
 	    checkBox.setSelected(exists);
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.