Skip to content

Commit

Permalink
(#2771) Handle null Y2 data values
Browse files Browse the repository at this point in the history
  • Loading branch information
squaregoldfish committed Oct 9, 2023
1 parent 601282a commit af6db58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public String getY2Data() {
if (null != y2Axis) {
result = Y2_GSON.toJson(plotValues.stream()
.filter(f -> !f.xNull() && !hideFlags ? true
: (f.getFlag2().isGood() || f.getFlag2().equals(Flag.NEEDED)))
: (null != f
&& (f.getFlag2().isGood() || f.getFlag2().equals(Flag.NEEDED))))
.collect(Collectors.toList()));
}

Expand Down

0 comments on commit af6db58

Please sign in to comment.