Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
Version 1.0.3
-
None
Description
See attached repro and run with assertions enabled. Creating a .newDomNode() from the parsed instance throws a NPE when looking up a prefix for the namespace "http://dufourrault"
Exception in thread "main" java.lang.AssertionError
at org.apache.xmlbeans.impl.store.Saver.getUriMapping(Saver.java:1188)
at org.apache.xmlbeans.impl.store.Saver$DomSaver.emitContainer(Saver.java:4525)
at org.apache.xmlbeans.impl.store.Saver.processContainer(Saver.java:788)
at org.apache.xmlbeans.impl.store.Saver.process(Saver.java:531)
at org.apache.xmlbeans.impl.store.Saver$DomSaver.exportDom(Saver.java:4474)
at org.apache.xmlbeans.impl.store.Cursor.newDomNode(Cursor.java:2954)
at org.apache.xmlbeans.impl.values.XmlObjectBase.newDomNode(XmlObjectBase.java:155)
at org.apache.xmlbeans.impl.values.XmlObjectBase.newDomNode(XmlObjectBase.java:152)
at test.main(test.java:11)