Author: thn
Date: 2011-03-03 13:02:51-0800
New Revision: 19103

Modified:
   
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelManagementHelperEUMLImpl.java

Log:
profile applications should not cause exceptions

Modified: 
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelManagementHelperEUMLImpl.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelManagementHelperEUMLImpl.java?view=diff&pathrev=19103&r1=19102&r2=19103
==============================================================================
--- 
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelManagementHelperEUMLImpl.java
     (original)
+++ 
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ModelManagementHelperEUMLImpl.java
     2011-03-03 13:02:51-0800
@@ -91,8 +91,7 @@
 
     public Collection getAllModelElementsOfKind(Object nsa, Object type) {
         if (!(nsa instanceof Element)) {
-            throw new IllegalArgumentException(
-                    "nsa must be instance of Element"); //$NON-NLS-1$
+            return new ArrayList<Element>();
         }
         Class theType = null;
         if (type instanceof String) {

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to