Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -238,7 +238,7 @@ public abstract class TbAbstractDataSubCtx<T extends AbstractDataQuery<? extends |
238 | 238 | private String lastUpdateValue; |
239 | 239 | |
240 | 240 | boolean updateValue(TsValue value) { |
241 | - if (value.getTs() > lastUpdateTs && !lastUpdateValue.equals(value.getValue())) { | |
241 | + if (value.getTs() > lastUpdateTs && (lastUpdateValue == null || !lastUpdateValue.equals(value.getValue()))) { | |
242 | 242 | this.lastUpdateTs = value.getTs(); |
243 | 243 | this.lastUpdateValue = value.getValue(); |
244 | 244 | return true; | ... | ... |