fixed NPE
This commit is contained in:
parent
8a92f22215
commit
ea65bd44e0
@ -310,7 +310,7 @@ public class CalculatedFieldCtx {
|
||||
}
|
||||
|
||||
public boolean hasOtherSignificantChanges(CalculatedFieldCtx other) {
|
||||
boolean expressionChanged = !expression.equals(other.expression);
|
||||
boolean expressionChanged = calculatedField.getConfiguration() instanceof ExpressionBasedCalculatedFieldConfiguration && !expression.equals(other.expression);
|
||||
boolean outputChanged = !output.equals(other.output);
|
||||
return expressionChanged || outputChanged;
|
||||
}
|
||||
|
||||
@ -17,12 +17,10 @@ package org.thingsboard.server.common.data.cf.configuration.geofencing;
|
||||
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.thingsboard.server.common.data.StringUtils;
|
||||
import org.thingsboard.server.common.data.cf.configuration.Argument;
|
||||
import org.thingsboard.server.common.data.cf.configuration.ArgumentType;
|
||||
import org.thingsboard.server.common.data.cf.configuration.ReferencedEntityKey;
|
||||
import org.thingsboard.server.common.data.id.EntityId;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user