Author: knopp
Date: Fri Jul 11 02:26:59 2008
New Revision: 675884

URL: http://svn.apache.org/viewvc?rev=675884&view=rev
Log:
possible parent missing fix

Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java?rev=675884&r1=675883&r2=675884&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java
 (original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/tree/AbstractTree.java
 Fri Jul 11 02:26:59 2008
@@ -1530,9 +1530,12 @@
                        deleteIds.append(",");
                }
 
-               // remove the id
-               // note that this doesn't update item's parent's children list
-               item.remove();
+               if (item.getParent() != null) 
+               {
+                       // remove the id
+                       // note that this doesn't update item's parent's 
children list
+                       item.remove();
+               }
        }
 
        /**


Reply via email to