From 5a2e757ad389262c1b5d7388de40cb48ce3bb1d5 Mon Sep 17 00:00:00 2001 From: Karoliine Holter Date: Fri, 15 Mar 2024 18:53:45 +0200 Subject: [PATCH] Bugfix: do not explode warnings when group_loc is null --- src/main/java/api/messages/GoblintMessagesResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/api/messages/GoblintMessagesResult.java b/src/main/java/api/messages/GoblintMessagesResult.java index f021b3f..0059fa6 100644 --- a/src/main/java/api/messages/GoblintMessagesResult.java +++ b/src/main/java/api/messages/GoblintMessagesResult.java @@ -92,7 +92,7 @@ public static class Group implements MultiPiece { * @return A collection of AnalysisResult objects. */ public List convert(List tags, String severity, boolean explode) { - return explode + return explode && this.group_loc != null ? convertGroupExplode(tags, severity) : convertGroup(tags, severity); }