You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2006/04/02 01:11:39 UTC

svn commit: r390760 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java

Author: dennisbyrne
Date: Sat Apr  1 15:11:37 2006
New Revision: 390760

URL: http://svn.apache.org/viewcvs?rev=390760&view=rev
Log:
The javadocs for Collections state:

The methods of this class all throw a NullPointerException if the collections provided to them are null. 

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java?rev=390760&r1=390759&r2=390760&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/DefaultMutableTreeNode.java Sat Apr  1 15:11:37 2006
@@ -194,7 +194,8 @@
      */
     public Iterator children()
     {
-        return Collections.unmodifiableCollection(children).iterator();
+        return children == null ? 
+                null : Collections.unmodifiableCollection(children).iterator();
     }
 
     /**