diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gnu/xml/dom/DomIterator.java | 8 |
2 files changed, 14 insertions, 2 deletions
@@ -1,4 +1,10 @@ -2006-08-03 Mark Wielaard <mark@klomp.org> +2006-08-04 Robert Schuster <robertschuster@fsfe.org> + Reported by Henrik Gulbrandsen <henrik@gulbra.net> + Fixes PR27864. + * gnu/xml/dom/DomIterator.java: + (successor): Added if-statement. + +2006-08-04 Mark Wielaard <mark@klomp.org> * scripts/Makefile.am (EXTRA_DIST): Add import-cacerts.sh. diff --git a/gnu/xml/dom/DomIterator.java b/gnu/xml/dom/DomIterator.java index 8a258926b..31f998246 100644 --- a/gnu/xml/dom/DomIterator.java +++ b/gnu/xml/dom/DomIterator.java @@ -253,7 +253,13 @@ public final class DomIterator { 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. |