ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XMLSCHEMA-44) Make XmlSchemaCollection get* APIs null-safe.
Date Thu, 04 May 2017 21:39:04 GMT

    [ https://issues.apache.org/jira/browse/XMLSCHEMA-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997476#comment-15997476
] 

Gary Gregory commented on XMLSCHEMA-44:
---------------------------------------

I'm glad my patch made it in there, I almost had forgotten about it ;-)

> Make XmlSchemaCollection get* APIs null-safe.
> ---------------------------------------------
>
>                 Key: XMLSCHEMA-44
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-44
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: Gary Gregory
>            Assignee: Daniel Kulp
>             Fix For: 2.2.2
>
>         Attachments: ggregory-xmlschema-core-null-safe.diff
>
>
> Make XmlSchemaCollection get* APIs null-safe.
> The following methods in XmlSchemaCollection throw an NPE when given null as input. 
> This patch adds null guard clauses to each method.
> - org.apache.ws.commons.schema.XmlSchemaCollection.getAttributeByQName(QName)
> - org.apache.ws.commons.schema.XmlSchemaCollection.getElementByQName(QName)
> - org.apache.ws.commons.schema.XmlSchemaCollection.getAttributeGroupByQName(QName)
> - org.apache.ws.commons.schema.XmlSchemaCollection.getGroupByQName(QName)
> - org.apache.ws.commons.schema.XmlSchemaCollection.getNotationByQName(QName)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message