diff --git a/light/Light.cpp b/light/Light.cpp index 9e284a79..f8929998 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -194,7 +194,7 @@ namespace V2_0 { namespace implementation { Return Light::setLight(Type type, const LightState& state) { - LightStateHandler handler; + LightStateHandler handler = nullptr; bool handled = false; /* Lock global mutex until light state is updated. */