You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/05/19 18:58:00 UTC

[jira] [Closed] (SCM-913) NPE on ChangeSet.toString() when no mergedRevisions are set

     [ https://issues.apache.org/jira/browse/SCM-913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed SCM-913.
------------------------------
    Resolution: Fixed

92a09124c9a0827a694dbf54a6e96370903bf658

> NPE on ChangeSet.toString() when no mergedRevisions are set
> -----------------------------------------------------------
>
>                 Key: SCM-913
>                 URL: https://issues.apache.org/jira/browse/SCM-913
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-api
>    Affects Versions: 1.11.1
>            Reporter: Roli Jäger
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 1.13.0, 2.0.0-M2
>
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)