svn commit: r13131 - trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-24 10:53:15-0700
New Revision: 13131

Modified:
   trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java

Log:
Don't add a null namespace to the list of choices

Modified: trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java?view=diff&rev=13131&p1=trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java&p2=trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java&r1=13130&r2=13131
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/foundation/core/UMLModelElementNamespaceComboBoxModel.java	2007-07-24 10:53:15-0700
@@ -82,7 +82,7 @@
          */
         if (target != null) {
             Object namespace = Model.getFacade().getNamespace(target);
-            if (!c.contains(namespace)) {
+            if (namespace != null && !c.contains(namespace)) {
                 c.add(namespace);
                 LOG.warn("The current namespace is not a valid one!");
             }
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.