You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Vicente (JIRA)" <ji...@codehaus.org> on 2007/02/22 15:54:27 UTC

[jira] Commented: (MCHANGELOG-54) NPE during "Developer Activity" report generation

    [ http://jira.codehaus.org/browse/MCHANGELOG-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88250 ] 

David Vicente commented on MCHANGELOG-54:
-----------------------------------------

i have the same NPE in doChangedFiles method of ChangeLogReport class and also in getOrderedFileList method of FileActivityReport class.

For these 3 classes, when you get the files list from a ChangeSet, you doesn't test if files list is null or not.

So, the problem is , with Synergy SCM, you can complete a task without checkout files.

so you can have a changelog-entry in changelog.xml without file element.

I hope it will be corrected as soon as possible

> NPE during "Developer Activity" report generation
> -------------------------------------------------
>
>                 Key: MCHANGELOG-54
>                 URL: http://jira.codehaus.org/browse/MCHANGELOG-54
>             Project: Maven 2.x Changelog Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-1
>         Environment: windows 2000, maven 2.0.4, SCM Synergy
> maven-changelog-plugin:2.0-SNAPSHOT
>            Reporter: David Vicente
>         Attachments: changelog-patch.txt
>
>
> I'm using the maven-changelog-plugin:2.0-SNAPSHOT and i have a NullPointerException during "Developer Activity" report generation.
> java.lang.NullPointerException at org.apache.maven.plugin.changelog.ChangeLogReport.countFilesChanged(ChangeLogReport.java:889) 
> at org.apache.maven.plugin.changelog.DeveloperActivityReport.doSummary(DeveloperActivityReport.java:221) 
> at org.apache.maven.plugin.changelog.DeveloperActivityReport.doChangedSets(DeveloperActivityReport.java:180) 
> at org.apache.maven.plugin.changelog.DeveloperActivityReport.doGenerateReport(DeveloperActivityReport.java:146) 
> at org.apache.maven.plugin.changelog.ChangeLogReport.executeReport(ChangeLogReport.java:296) 
> I have the Synergy SCM. 
> it occurs when a Synergy task is completed without modified file, the changelog.xml has an entry without file.
> it occurs with the last released version.
> I made the correction (see changelog-patch.txt) and it works fine

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira