[
https://issues.apache.org/jira/browse/SCM-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963578#comment-17963578
]
ASF GitHub Bot commented on SCM-913:
------------------------------------
jira-importer commented on issue #1126:
URL: https://github.com/apache/maven-scm/issues/1126#issuecomment-2964647182
**[Michael
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)**
commented
PRs welcome!
> NPE on ChangeSet.toString() when no mergedRevisions are set
> -----------------------------------------------------------
>
> Key: SCM-913
> URL: https://issues.apache.org/jira/browse/SCM-913
> Project: Maven SCM (Moved to GitHub Issues)
> 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.10#820010)