SysTryReturn(NID_UI_SCENES, !IsFailed(r), r, r, "[%s] Propagating.", GetErrorMessage(r));
UiApp* pUiApp = UiApp::GetInstance();
- SysTryReturn(NID_UI_SCENES, pUiApp != null, null, E_SYSTEM,
- "[%s] A system error has been occurred. UiApp::GetInstance failed.", GetErrorMessage(E_SYSTEM));
- Frame* pFrame = pUiApp->GetFrameAt(0);
- SysTryReturn(NID_UI_SCENES, pFrame != null, null, E_SYSTEM,
- "[%s] A system error has been occurred. pUiApp->GetFrameAt(0) return null.", GetErrorMessage(E_SYSTEM));
- __pCorrespondFrame = pFrame;
- _ContainerImpl* pFrameWindowImpl = _ContainerImpl::GetInstance(*__pCorrespondFrame);
- SysTryReturn(NID_UI_SCENES, pFrameWindowImpl != null, null, E_SYSTEM,
- "[%s] A system error has been occurred. _ContainerImpl::GetInstance failed.", GetErrorMessage(E_SYSTEM));
- __correspondFrameControlHandle = pFrameWindowImpl->GetCore().GetHandle();
+ if (pUiApp)
+ {
+ Frame* pFrame = pUiApp->GetFrameAt(0);
+ if (pFrame)
+ {
+ __pCorrespondFrame = pFrame;
+ _ContainerImpl* pFrameWindowImpl = _ContainerImpl::GetInstance(*__pCorrespondFrame);
+ if (pFrameWindowImpl)
+ {
+ __correspondFrameControlHandle = pFrameWindowImpl->GetCore().GetHandle();
+ }
+ else
+ {
+ SysLog(NID_UI_SCENES, "WARNING! - Invalid Frame window. [_ContainerImpl::GetInstance failed]");
+ }
+ }
+ else
+ {
+ SysLog(NID_UI_SCENES, "WARNING! - Please add a Frame window before use the SceneManager. [pUiApp->GetFrameAt(0) return null]");
+ }
+ }
+ else
+ {
+ SysLog(NID_UI_SCENES, "WARNING! - Please check the application type. SceneManager is valid only Ui-Application. [UiApp::GetInstance failed]");
+ }
return E_SUCCESS;
}