You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2018/10/19 10:26:00 UTC
[jira] [Resolved] (CXF-7880) NullPointerException in
org.apache.cxf.maven_plugin.Java2WSMojo
[ https://issues.apache.org/jira/browse/CXF-7880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh resolved CXF-7880.
--------------------------------------
Resolution: Fixed
> 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)