- Fix derefenced pointer
Change-Id: I6f1dcd553caff648c57e0ab1ebc6187e693fd601
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
if ( handler && handler->mWindow && transformEvent->output == ecore_wl_window_output_find( handler->mEcoreWindow ) )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( handler->mWindow->mSurface ) );
- wlSurface->OutputTransformed();
+ if( wlSurface )
+ {
+ wlSurface->OutputTransformed();
+ }
}
return ECORE_CALLBACK_PASS_ON;
if ( handler && handler->mWindow && ignoreTransformEvent->win == handler->mEcoreWindow )
{
ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( handler->mWindow->mSurface ) );
- wlSurface->OutputTransformed();
+ if( wlSurface )
+ {
+ wlSurface->OutputTransformed();
+ }
}
return ECORE_CALLBACK_PASS_ON;