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

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2011-05-30 05:56:11-0700
New Revision: 19544

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

Log:
fix: preventing null values in the returned collection of residents

Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java?view=diff&pathrev=19544&r1=19543&r2=19544
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	(original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/FacadeMDRImpl.java	2011-05-30 05:56:11-0700
@@ -3266,8 +3266,10 @@
                 for (Iterator it =
                         ((Component) handle).getResidentElement().iterator();
                     it.hasNext();) {
-                    residents.add(
-                            ((ElementResidence) it.next()).getResident());
+                    ModelElement me = ((ElementResidence) it.next()).getResident();
+                    if (me != null) {
+                        residents.add(me);
+                    }
                 }
                 return residents;
             }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2753161

To unsubscribe from this discussion, e-mail: [[email protected]].
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.