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] [Comment Edited] (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:comment-tabpanel&focusedCommentId=17539745#comment-17539745 ] 

Michael Osipov edited comment on SCM-913 at 5/19/22 6:57 PM:
-------------------------------------------------------------

Fixed with [662b58a73d49ba2f7d728543ab6a10987b5324da|https://gitbox.apache.org/repos/asf?p=maven-scm.git;a=commit;h=662b58a73d49ba2f7d728543ab6a10987b5324da] and with [92a09124c9a0827a694dbf54a6e96370903bf658|https://gitbox.apache.org/repos/asf?p=maven-scm.git;a=commit;h=92a09124c9a0827a694dbf54a6e96370903bf658] for {{maven-scm-1.x}} branch.


was (Author: michael-o):
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)