From c49650eafffedf6ab7c838f62ef817c6e19f6613 Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Fri, 15 Jan 2016 10:59:50 +0100 Subject: [PATCH] Bug fix Former-commit-id: 8af0c39b2664373f32eaec5483b4c88950690845 --- src/se/hal/struct/AbstractDevice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/se/hal/struct/AbstractDevice.java b/src/se/hal/struct/AbstractDevice.java index e8dbb989..e248955b 100755 --- a/src/se/hal/struct/AbstractDevice.java +++ b/src/se/hal/struct/AbstractDevice.java @@ -89,7 +89,7 @@ public abstract class AbstractDevice extends DBBean { return type; } public void setType(String type) { - if (!this.type.equals(type)) { + if (this.type == null || !this.type.equals(type)) { this.type = type; this.deviceData = null; // invalidate current sensor data object }