Skip to content

Commit

Permalink
[SCM-913] NPE on ChangeSet.toString() when no mergedRevisions are set
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed May 19, 2022
1 parent 68dd194 commit 92a0912
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class ChangeSet
* List of ChangeFile
*/
private List<ChangeFile> files;

/**
* The SCM revision id for this changeset.
* @since 1.3
Expand Down Expand Up @@ -470,10 +470,10 @@ public String toString()
if ( parentRevision != null )
{
result.append( "parent: " ).append( parentRevision );
if ( !mergedRevisions.isEmpty() )
if ( !getMergedRevisions().isEmpty() )
{
result.append( " + " );
result.append( mergedRevisions );
result.append( getMergedRevisions() );
}
result.append( "\n" );
}
Expand Down

0 comments on commit 92a0912

Please # to comment.