From bff191b24155990dc1431b7f0964fcace0e7e58f Mon Sep 17 00:00:00 2001 From: Erik Verheul Date: Mon, 8 Nov 2021 17:49:08 +0100 Subject: [PATCH] Prevent saving a state without any selected hosts --- .../verheulconsultants/monitorisp/service/MonitorISPData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/verheulconsultants/monitorisp/service/MonitorISPData.java b/src/main/java/nl/verheulconsultants/monitorisp/service/MonitorISPData.java index 0cca6f0..5cde95c 100644 --- a/src/main/java/nl/verheulconsultants/monitorisp/service/MonitorISPData.java +++ b/src/main/java/nl/verheulconsultants/monitorisp/service/MonitorISPData.java @@ -84,7 +84,7 @@ public class MonitorISPData implements Serializable { private boolean allSet() { if (null != paletteModel && !paletteModel.getObject().isEmpty() - && null != selected + && null != selected && !selected.isEmpty() && null != routerAddress && null != outages && startOfService > 0L