You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Yana Kadiyska (JIRA)" <xm...@xml.apache.org> on 2005/02/10 23:46:32 UTC
[jira] Resolved: (XMLBEANS-14) newDomNode() throws NullPointerException
[ http://issues.apache.org/jira/browse/XMLBEANS-14?page=history ]
Yana Kadiyska resolved XMLBEANS-14:
-----------------------------------
Resolution: Fixed
Fix Version: Version 2 Beta 1
in V2 method getUriMapping is guaranteed to return a non-null value...I would thus consider the issue resolved. If the reporter disagrees, can we get a simple repro scenario that we can use for debugging?
> 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
> Assignee: Yana Kadiyska
> 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
-
If you want more information on JIRA, or have a bug to report 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