Former-commit-id: 8af0c39b2664373f32eaec5483b4c88950690845
This commit is contained in:
Ziver Koc 2016-01-15 10:59:50 +01:00
parent 656bc41226
commit c49650eaff

View file

@ -89,7 +89,7 @@ public abstract class AbstractDevice<T> 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
}