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

Domagoj Cosic commented on CXF-7880:
------------------------------------

Sorry, I was only looking for matching open tickets, so I have overlooked the 
closed isssue.

> NullPointerException in org.apache.cxf.maven_plugin.Java2WSMojo
> ---------------------------------------------------------------
>
>                 Key: CXF-7880
>                 URL: https://issues.apache.org/jira/browse/CXF-7880
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.2.5, 3.2.6
>            Reporter: Domagoj Cosic
>            Priority: Major
>
> In version 3.2.5 a classifier check was introduced in the if clause, in line 
> 471 as of version 3.2.6:
> {{classifier.equals(a.getClassifier())}}
> but without null pointer protection, causing an NPE if classifier is null. 
> classifier is expected to sometimes be null as the present check in line 476 
> (just 5 lines below) demonstrates. The above clause could be rewritten as 
> e.g.:
>  {{Objects.equals(classifier, a.getClassifier())}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to