[hueemulation] Fixed nullpointer in adjustedColorStateFromItemState (#8560)
Signed-off-by: Nicolai Grødum <grodum@gmail.com>pull/8564/head
parent
cafa8fdcff
commit
9c16f3c6f5
|
@ -450,7 +450,8 @@ public class StateUtils {
|
|||
}
|
||||
}
|
||||
} else if (lastCommand instanceof PercentType) {
|
||||
if (hueState instanceof HueStateBulb && itemState.as(PercentType.class).equals(lastCommand)) {
|
||||
if (hueState instanceof HueStateBulb && itemState != null
|
||||
&& lastCommand.equals(itemState.as(PercentType.class))) {
|
||||
if (lastHueChange.bri != null) {
|
||||
((HueStateBulb) hueState).bri = lastHueChange.bri;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue