You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gabriel Belingueres (JIRA)" <ji...@codehaus.org> on 2012/09/19 19:49:21 UTC

[jira] (MCHANGELOG-130) NullPointerException when no SCM is defined

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

        

[jira] (MCHANGELOG-130) NullPointerException when no SCM is defined

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCHANGELOG-130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MCHANGELOG-130.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: Olivier Lamy

Fixed.
Thanks!
                
> 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
>            Assignee: Olivier Lamy
>            Priority: Minor
>             Fix For: 2.3
>
>
> 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