Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-14

newDomNode() throws NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • unspecified
    • Version 2 Beta 1
    • XmlObject
    • None
    • Operating System: All
      Platform: All
    • 26692

    Description

      A bit of tracing revealed that the Saver.DomSaver object was not checking for a
      null return when looking up a prefix while outputting attribute values.

          • v1/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java Fri Jan 23
            16:54:18 2004
          • v1-patch-jaxen/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java Wed
            Feb 4 22:27:58 2004
            ***************
          • 4570,4576 **** { String prefix = getUriMapping( s.getUri() ); ! if (prefix.length() > 0) qname = prefix + ":" + qname; }

      — 4570,4576 ----

      { String prefix = getUriMapping( s.getUri() ); ! if (prefix != null && prefix.length() > 0) qname = prefix + ":" + qname; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            dizzyd@jabber.org Dave Smith
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: