From 78f4929e33e1d610199197e811132214b93d9614 Mon Sep 17 00:00:00 2001 From: Marco Petris Date: Sun, 24 Mar 2024 11:10:27 +0100 Subject: [PATCH] fixes #343 --- .../repository/git/managers/GitlabManagerRestricted.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/catma/repository/git/managers/GitlabManagerRestricted.java b/src/main/java/de/catma/repository/git/managers/GitlabManagerRestricted.java index 1faf323c..a1d67477 100644 --- a/src/main/java/de/catma/repository/git/managers/GitlabManagerRestricted.java +++ b/src/main/java/de/catma/repository/git/managers/GitlabManagerRestricted.java @@ -715,7 +715,10 @@ public List getComments(ProjectReference projectReference, String docum comment.setUserId(issue.getAuthor().getId()); comment.setUsername(issue.getAuthor().getName()); // TODO: if we're using the public name it shouldn't be called 'username' on the Comment class comment.setReplyCount(issue.getUserNotesCount()); - + + // gson doesn't initialize transient fields, so we need to do it explicitly + comment.setReplies(new ArrayList<>()); + comments.add(comment); }