Maven Changes Plugin
  1. Maven Changes Plugin
  2. MCHANGES-219

Not specifying a date for a release causes "null" to be displayed in changes report

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: changes.xml
    • Labels:
      None
    • Environment:
      Windows XP
      Sun JDK 1.6.0_18
    • Number of attachments :
      0

      Description

      If the date is not specified for a release, "null" is displayed in the header of that release. For example, the header text for release 1.0.0 is "Release 1.0.0 - null".
      Note that the date is correctly left empty in the release table.

      My suggestion is that if no date is specified, the header text should just be "Release x.x.x". No dash and obviously no "null" text.

        Activity

        Hide
        Anders Hammar added a comment -

        The method that needs to be updated is ChangesReportGenerator.constructReleases(). I believe that release.getDateRelease() returns null which is converted to the "null" text string.
        An simple fix would be to check if it returns null.

        Show
        Anders Hammar added a comment - The method that needs to be updated is ChangesReportGenerator.constructReleases(). I believe that release.getDateRelease() returns null which is converted to the "null" text string. An simple fix would be to check if it returns null.
        Hide
        Lukas Theussl added a comment -

        Fixed in r1055577

        Show
        Lukas Theussl added a comment - Fixed in r1055577

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Anders Hammar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: