Fix svace issues 13/151413/1
authorhuiyu,eun <huiyu.eun@samsung.com>
Thu, 21 Sep 2017 00:15:40 +0000 (09:15 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Thu, 21 Sep 2017 01:13:55 +0000 (10:13 +0900)
- Fix derefenced pointer

Change-Id: I6f1dcd553caff648c57e0ab1ebc6187e693fd601
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
adaptors/ecore/wayland/window-impl-ecore-wl.cpp

index 971be10..6a71e00 100644 (file)
@@ -211,7 +211,10 @@ struct Window::EventHandler
     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;
@@ -226,7 +229,10 @@ struct Window::EventHandler
     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;