[ 
https://issues.apache.org/jira/browse/SCM-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963576#comment-17963576
 ] 

ASF GitHub Bot commented on SCM-913:
------------------------------------

jira-importer opened a new issue, #1126:
URL: https://github.com/apache/maven-scm/issues/1126

   **[Roli 
Jäger](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rojge)** 
opened 
**[SCM-913](https://issues.apache.org/jira/browse/SCM-913?redirect=false)** and 
commented
   
   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.
   
    
   
   
   ---
   
   **Affects:** 1.11.1
   




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

Reply via email to