Bug fix
Former-commit-id: 8af0c39b2664373f32eaec5483b4c88950690845
This commit is contained in:
parent
656bc41226
commit
c49650eaff
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ public abstract class AbstractDevice<T> extends DBBean {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
public void setType(String type) {
|
public void setType(String type) {
|
||||||
if (!this.type.equals(type)) {
|
if (this.type == null || !this.type.equals(type)) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.deviceData = null; // invalidate current sensor data object
|
this.deviceData = null; // invalidate current sensor data object
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue