svn commit: r14593 - trunk/src/argouml-app/src/org/argouml/ui/explorer/ExplorerTreeModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
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) {
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.