[3.0] Checked value by dynamic_cast 79/107579/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141840 accepted/tizen/3.0.m2/tv/20170104.142145 accepted/tizen/3.0.m2/wearable/20170104.142441 accepted/tizen/3.0/common/20161229.113522 accepted/tizen/3.0/ivi/20161229.091930 accepted/tizen/3.0/mobile/20161229.091809 accepted/tizen/3.0/tv/20161229.091834 accepted/tizen/3.0/wearable/20161229.091905 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161229.061002
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 28 Dec 2016 13:38:21 +0000 (22:38 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 28 Dec 2016 13:41:11 +0000 (22:41 +0900)
  dynamic_cast fails and type is a pointer, it returns a null pointer
  Most window impl functions check it, but ShowIndicator not.

Change-Id: Ib8d015f2bf005ba67033e735f0e995c72f2006a2

adaptors/ecore/wayland/window-impl-ecore-wl.cpp

index 2160e4f..576e348 100644 (file)
@@ -196,7 +196,12 @@ void Window::ShowIndicator( Dali::Window::IndicatorVisibleMode visibleMode )
 
   ECore::WindowRenderSurface* wlSurface( dynamic_cast< ECore::WindowRenderSurface * >( mSurface ) );
   DALI_ASSERT_DEBUG(wlSurface);
-  Ecore_Wl_Window* wlWindow = wlSurface->GetWlWindow();
+
+  Ecore_Wl_Window* wlWindow = NULL;
+  if( wlSurface )
+  {
+    wlWindow = wlSurface->GetWlWindow();
+  }
 
   mIndicatorVisible = visibleMode;