Skip to content

Commit

Permalink
Bugfix: do not explode warnings when group_loc is null
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Mar 15, 2024
1 parent 26f1b15 commit 5a2e757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/api/messages/GoblintMessagesResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static class Group implements MultiPiece {
* @return A collection of AnalysisResult objects.
*/
public List<AnalysisResult> convert(List<Tag> tags, String severity, boolean explode) {
return explode
return explode && this.group_loc != null
? convertGroupExplode(tags, severity)
: convertGroup(tags, severity);
}
Expand Down

0 comments on commit 5a2e757

Please sign in to comment.