http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2642

*** shadow/2642 Mon Jul 16 11:55:19 2001
--- shadow/2642.tmp.9976        Mon Jul 16 11:55:19 2001
***************
*** 0 ****
--- 1,44 ----
+ +============================================================================+
+ | NPE in DTMNodeIterator.nextNode at line 198                                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2642                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: CurrentCVS              |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Major                    OS/Version: All                     |
+ |     Priority: Other                     Component: org.apache.xml.dtm      |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Using the following file as new.xml:
+ 
+ <?xml version="1.0"?>
+ <!DOCTYPE doc [
+   <!ELEMENT doc (test*)>
+   <!ELEMENT test EMPTY>
+   <!ATTLIST test id   ID    #REQUIRED
+                  name CDATA #REQUIRED
+   >
+ ]>
+ <doc>
+   <test id="a" name="TestA"/>
+   <test id="b" name="TestB"/>
+ </doc>
+ 
+ the following command line:
+ 
+ java ApplyXPath new.xml "id('a')"
+ 
+ results in:
+ 
+ Loading classes, parsing new.xml, and setting up serializer
+ Querying DOM using id('a')
+ <output>
+ java.lang.NullPointerException:
+   at org.apache.xml.dtm.ref.DTMNodeIterator.nextNode(DTMNodeIterator.java: 198)
+   at ApplyXPath.doMain(Compiled Code)
+   at ApplyXPath.main(ApplyXPath.java:158)

Reply via email to