ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Repchevsky (JIRA)" <>
Subject [jira] [Created] (XMLSCHEMA-26) NPE: NamespaceMap.getNamespaceURI() returns null
Date Wed, 01 Aug 2012 10:47:03 GMT
Dmitry Repchevsky created XMLSCHEMA-26:

             Summary: NPE: NamespaceMap.getNamespaceURI() returns null
                 Key: XMLSCHEMA-26
             Project: XmlSchema
          Issue Type: Bug
    Affects Versions: 2.0.3
         Environment: Java
            Reporter: Dmitry Repchevsky

Related to the

As mentioned in a comment:
>NamespaceMap returns null if no prefix found while according NamespaceContext it should
return Constants.NULL_NS_URI.

There are two solutions possible.
1. fix NamespaceMap class to do not return null as defined in NamespaceContext contract.
2. make XmlSchemaSerializer changes to check both null && "".

Note that (1) may introduce bugs in code that uses XML Schema where null is incorrectly used
instead of Constants.NULL_NS_URI to check whether prefix is bound.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message