[3.0] Checked value by dynamic_cast
[platform/core/uifw/dali-adaptor.git] / 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;