You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/04/19 23:24:27 UTC

[jira] Closed: (XMLBEANS-14) newDomNode() throws NullPointerException

     [ http://issues.apache.org/jira/browse/XMLBEANS-14?page=all ]
     
Jacob Danner closed XMLBEANS-14:
--------------------------------

    Assign To:     (was: Yana Kadiyska)

Fix Verified, Case automated, closing.

> newDomNode() throws NullPointerException
> ----------------------------------------
>
>          Key: XMLBEANS-14
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-14
>      Project: XMLBeans
>         Type: Bug
>   Components: XmlObject
>     Versions: unspecified
>  Environment: Operating System: All
> Platform: All
>     Reporter: Dave Smith
>      Fix For: Version 2 Beta 1

>
> 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;
>                       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org