From af6db580affedb9eb90b3701a535633894097c02 Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Mon, 9 Oct 2023 15:48:12 +0200 Subject: [PATCH] (#2771) Handle null Y2 data values --- WebApp/src/uk/ac/exeter/QuinCe/web/datasets/plotPage/Plot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebApp/src/uk/ac/exeter/QuinCe/web/datasets/plotPage/Plot.java b/WebApp/src/uk/ac/exeter/QuinCe/web/datasets/plotPage/Plot.java index a97406a39..b321fbdf0 100644 --- a/WebApp/src/uk/ac/exeter/QuinCe/web/datasets/plotPage/Plot.java +++ b/WebApp/src/uk/ac/exeter/QuinCe/web/datasets/plotPage/Plot.java @@ -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())); }