diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java index 390a7ce..5a69494 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java @@ -655,10 +655,12 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe @Override public void setDeviceStatus(JSONObject data) { String requireSucess = data.getString("requireSucess"); - if (requireSucess.equals("1")){ - this.requireSucess = true; - } else if (requireSucess.equals("0")){ - this.requireSucess = false; + if (StrUtil.isNotEmpty(requireSucess)){ + if (requireSucess.equals("1")){ + this.requireSucess = true; + } else if (requireSucess.equals("0")){ + this.requireSucess = false; + } } } }