maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Fields (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MCHECKSTYLE-294) NPE on missing license artifact, not fixed previously
Date Tue, 19 May 2015 20:30:00 GMT

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

Bob Fields commented on MCHECKSTYLE-294:
----------------------------------------

Stack trace snippet, occurs in 2.15 and 2.16-SNAPSHOT:
Caused by: java.lang.NullPointerException
	at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.configureResourceLocator(DefaultCheckstyleExecutor.java:890)
	at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:102)
	at org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport.executeReport(AbstractCheckstyleReport.java:473)
	at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:155)

> NPE on missing license artifact, not fixed previously
> -----------------------------------------------------
>
>                 Key: MCHECKSTYLE-294
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-294
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>          Components: checkstyle:checkstyle
>    Affects Versions: 2.15, 2.16
>         Environment: Windows7 x64 JDK8 Checkstyle 6.2 maven-checkstyle-plugin 2.15 and
2.16-SNAPSHOT as of 5/20/2015.
>            Reporter: Bob Fields
>              Labels: easyfix, patch
>             Fix For: 2.16
>
>         Attachments: MCHECKSTYLE-294.java.patch
>
>
> MCHECKSTYLE-250 fix does not check for null values, only for invalid URL. This patch
checks for null values and fixes the original problem, and emits a warning if the license
file is missing (but does not kill the checkstyle process or site build). Interestingly -
this error only occurs on 'mvn site', not on 'mvn checkstyle:checkstyle'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message