diff --git a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/HeatpumpConnector.java b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/HeatpumpConnector.java index a3ed82e643361..1cfd739a2bab7 100644 --- a/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/HeatpumpConnector.java +++ b/bundles/org.openhab.binding.luxtronikheatpump/src/main/java/org/openhab/binding/luxtronikheatpump/internal/HeatpumpConnector.java @@ -71,7 +71,7 @@ public void read() throws UnknownHostException, IOException { // the thermal energies can be unreasonably high in some cases, probably due to a sign bug in the firmware // trying to correct this issue here for (int i = 151; i <= 154; i++) { - if (heatpumpValues[i] >= 214748364) { + if (heatpumpValues.length > i && heatpumpValues[i] >= 214748364) { heatpumpValues[i] -= 214748364; } }