svn commit: r13684 - trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-10-11 03:48:22-0700
New Revision: 13684

Modified:
   trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java

Log:
Protect against null ownerScope

Modified: trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java?view=diff&rev=13684&p1=trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java&p2=trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java&r1=13683&r2=13684
==============================================================================
--- trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	(original)
+++ trunk/src/model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	2007-10-11 03:48:22-0700
@@ -2948,8 +2948,8 @@
     
     public boolean isStatic(Object handle) {
         try {
-            return ((Feature) handle).getOwnerScope().equals(
-                    ScopeKindEnum.SK_CLASSIFIER);
+            return ScopeKindEnum.SK_CLASSIFIER.equals(((Feature) handle)
+                    .getOwnerScope());
         } catch (ClassCastException e) {
             throw new IllegalArgumentException(e);
         } catch (InvalidObjectException e) {
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.