Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-913

NPE on ChangeSet.toString() when no mergedRevisions are set

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.11.1
    • 1.13.0, 2.0.0-M2
    • maven-scm-api
    • None

    Description

      Calling toString() on ChangeSet will result in an NPE if neither addMergedRevision () nor getMergedRevisions() was previously called.

      The solution would be to access mergedRevisions by calling getMergedRevisions() as done in the toXML() Method.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            michael-o Michael Osipov
            RoJge Roli Jäger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment