diff options
author | Robert Schuster <theBohemian@gmx.net> | 2006-08-04 00:01:54 +0000 |
---|---|---|
committer | Robert Schuster <theBohemian@gmx.net> | 2006-08-04 00:01:54 +0000 |
commit | 0a15f91898f030fea1d00dbb4cc09424907afe11 (patch) | |
tree | 799cc72f8c3b5378894555485db08f3aa02ae989 /gnu | |
parent | 1553a8ec3221611d584b2966b70a8ab1393bd4c8 (diff) | |
download | classpath-0a15f91898f030fea1d00dbb4cc09424907afe11.tar.gz |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/xml/dom/DomIterator.java | 8 |
1 files changed, 7 insertions, 1 deletions
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. |