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())); }