Skip to content

Commit

Permalink
Possible null pointer exception is now being avoided (#2537)
Browse files Browse the repository at this point in the history
Signed-off-by: Aindriu Lavelle <[email protected]>
  • Loading branch information
aindriu-aiven authored Aug 2, 2024
1 parent e6549ad commit 6ef7f5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public <X> ChartsJsOverview getChartsJsOverview(
List<String> labels = new ArrayList<>(size);
List<String> colors = new ArrayList<>(size);

if (activityCountList.isEmpty()) {
if (activityCountList != null && activityCountList.isEmpty()) {
data.add(0);
labels.add("");
}
Expand Down

0 comments on commit 6ef7f5e

Please sign in to comment.