From a66d561b0c659818537f0486b702bbc3eaac4e8d Mon Sep 17 00:00:00 2001 From: Steve Jones Date: Mon, 2 Dec 2024 12:17:55 +0100 Subject: [PATCH] (#3021) Handle empty position QC messages --- WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/SensorValue.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/SensorValue.java b/WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/SensorValue.java index a3c22c4c5..18c020196 100644 --- a/WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/SensorValue.java +++ b/WebApp/src/uk/ac/exeter/QuinCe/data/Dataset/SensorValue.java @@ -594,7 +594,10 @@ public String getDisplayQCMessage(DatasetSensorValues allSensorValues) for (SensorValue value : allSensorValues.getById(sourceValues)) { if (!(isPosition() && value.isPosition())) { - messages.add(value.getDisplayQCMessage(allSensorValues)); + String qcMessage = value.getDisplayQCMessage(allSensorValues); + if (null != qcMessage) { + messages.add(qcMessage); + } } }