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
    • 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

      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

        Anders Hammar created issue -
        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
        Lukas Theussl made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Assignee Lukas Theussl [ lukas ]
        Fix Version/s 2.4 [ 16043 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:14:45 UTC 2015 [ 1428225285377 ]
        Mark Thomas made changes -
        Workflow jira [ 12718053 ] Default workflow, editable Closed status [ 12749322 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:40:15 UTC 2015 [ 1428273615853 ]
        Mark Thomas made changes -
        Workflow jira [ 12955440 ] Default workflow, editable Closed status [ 12992636 ]
        Mark Thomas made changes -
        Assignee Lukas JOSEFIK [ lukas ] Lukas Theussl [ ltheussl ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        5h 45m 1 Lukas Theussl 05/Jan/11 12:51

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development