Gabriel Belingueres created MCHANGELOG-130:
----------------------------------------------
Summary: NullPointerException when no SCM <url> is defined
Key: MCHANGELOG-130
URL: https://jira.codehaus.org/browse/MCHANGELOG-130
Project: Maven 2.x Changelog Plugin
Issue Type: Bug
Affects Versions: 2.2
Environment: Win 7, Java 6, Maven 3.0.4
Reporter: Gabriel Belingueres
Priority: Minor
A NullPointerException occurs on line 1495 of class ChangeLogReport, when the
pom.xml file does not specify a scm <url> tag, even if the
<displayFileDetailUrl> is specified.
>From what I saw in the code, the offending line is (in generateLinks() method):
if ( !scmUrl.equals( linkFile ) )
reversing the comparison should be sufficient (I think):
if ( !linkFile.equals( scmUrl ) )
Regards,
Gabriel
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira