Hi,
this small patchlet, suggested by Henrik Gulbrandsen, fixes another case of 
PR27864.

2006-08-04  Robert Schuster  <[EMAIL PROTECTED]>
        Reported by Henrik Gulbrandsen <[EMAIL PROTECTED]>
        Fixes PR27864.
        * gnu/xml/dom/DomIterator.java:
        (successor): Added if-statement.

cya
Robert
Index: gnu/xml/dom/DomIterator.java
===================================================================
RCS file: /cvsroot/classpath/classpath/gnu/xml/dom/DomIterator.java,v
retrieving revision 1.5
diff -u -r1.5 DomIterator.java
--- gnu/xml/dom/DomIterator.java	8 Jun 2006 09:36:02 -0000	1.5
+++ gnu/xml/dom/DomIterator.java	3 Aug 2006 23:59:25 -0000
@@ -253,7 +253,13 @@
       {
         return here.getFirstChild();
       }
-
+    
+    // There's no way up or sideways from the root, so if we
+    // couldn't move down to a child, there's nowhere to go.
+    //
+    if (here == root)
+      return null;
+    
     //
     // Siblings ... if forward, we visit them, if backwards
     // we visit their children first.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to