Author: tfmorris
Date: 2008-05-02 09:08:47-0700
New Revision: 14593

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java

Log:
Protect against null if we catch an InvalidElementException

Modified: 
trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java?view=diff&rev=14593&p1=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java&p2=trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java&r1=14592&r2=14593
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java    
(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java    
2008-05-02 09:08:47-0700
@@ -443,7 +443,7 @@
             // require doing the updates in a different thread than the
             // event delivery thread to prevent deadlocks, so for right now
             // we protect ourselves with try/catch blocks.
-            Collection children = null;
+            Collection children = Collections.emptySet();
             try {
                 children = rule.getChildren(modelElement);
             } catch (InvalidElementException e) {

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to