Fix segmentation fault when recall scene with on/off light
@@ -6884,7 +6884,7 @@ void DeRestPluginPrivate::handleSceneClusterIndication(TaskItem &task, const deC
}
item = lightNode->item(RStateBri);
- if (ls->bri() != item->toNumber())
+ if (item && ls->bri() != item->toNumber())
{
item->setValue(ls->bri());
Event e(RLights, RStateBri, lightNode->id());
