Uploaded image for project: 'Maven Changelog Plugin'
  1. Maven Changelog Plugin
  2. MCHANGELOG-130

NullPointerException when no SCM <url> is defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 2.3
    • None
    • Win 7, Java 6, Maven 3.0.4

    Description

      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

      Attachments

        Activity

          People

            olamy Olivier Lamy
            gaby@ieee.org Gabriel Belingueres
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: