Index: java/src/org/apache/xindice/xml/dom/DocumentImpl.java =================================================================== RCS file: /home/cvspublic/xml-xindice/java/src/org/apache/xindice/xml/dom/DocumentImpl.java,v retrieving revision 1.16 diff -U2 -r1.16 DocumentImpl.java --- java/src/org/apache/xindice/xml/dom/DocumentImpl.java 24 Feb 2004 15:32:27 -0000 1.16 +++ java/src/org/apache/xindice/xml/dom/DocumentImpl.java 9 Apr 2004 18:16:01 -0000 @@ -349,5 +349,5 @@ } n = n.getParentNode(); - if (n.getNodeType() == DOCUMENT_NODE || n.getNodeType() == DOCUMENT_FRAGMENT_NODE) { + if (n == null || n.getNodeType() == DOCUMENT_NODE || n.getNodeType() == DOCUMENT_FRAGMENT_NODE) { n = null; }