Skip to content

Commit 78f4929

Browse files
committed
fixes #343
1 parent 3e8e384 commit 78f4929

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/de/catma/repository/git/managers/GitlabManagerRestricted.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,10 @@ public List<Comment> getComments(ProjectReference projectReference, String docum
715715
comment.setUserId(issue.getAuthor().getId());
716716
comment.setUsername(issue.getAuthor().getName()); // TODO: if we're using the public name it shouldn't be called 'username' on the Comment class
717717
comment.setReplyCount(issue.getUserNotesCount());
718-
718+
719+
// gson doesn't initialize transient fields, so we need to do it explicitly
720+
comment.setReplies(new ArrayList<>());
721+
719722
comments.add(comment);
720723
}
721724

0 commit comments

Comments
 (0)