Fix the Prevent CID 48468 Dereference after null check.
[framework/osp/uifw.git] / src / ui / scenes / FUiScenes_SceneManagerImpl.cpp
index 801d9f6..590a37e 100644 (file)
@@ -1134,7 +1134,10 @@ _SceneManagerImpl::GotoScene(bool forward, const SceneId& sceneId, SceneTransiti
                        r = SetInputEventEnableState(*pForm, false);
                        if (IsFailed(r))
                        {
-                               SetInputEventEnableState(*__pCurrentScene->GetForm(), true);
+                               if (__pCurrentScene)
+                               {
+                                       SetInputEventEnableState(*__pCurrentScene->GetForm(), true);
+                               }
                        }
                        SysTryCatch(NID_UI_SCENES, !IsFailed(r), , r, "[%s] Propagating.", GetErrorMessage(r));
                }