Check tbm is null or not 18/249118/1 accepted/tizen/6.0/unified/20201208.101303 submit/tizen_6.0/20201207.091542
authorSunghyun Kim <scholb.kim@samsung.com>
Mon, 7 Dec 2020 07:55:17 +0000 (16:55 +0900)
committerSunghyun Kim <scholb.kim@samsung.com>
Mon, 7 Dec 2020 08:10:06 +0000 (17:10 +0900)
Change-Id: I2fff9c49c51408b68b0b0c9e5519b32164a6ef85

widget_viewer_dali/internal/widget_view/widget_view_impl.cpp

index 5f5a5ba8551697946b591eadccc86ef68ed61c7c..41eb01cc5c69c469bc39c6d2c563c9a151ba78b1 100644 (file)
@@ -1701,7 +1701,7 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b
     ConnectSignal( surface );
   }
 
-  if( !buffer)
+  if( !buffer )
   {
     DALI_LOG_ERROR("wl buffer is NULL");
     return;
@@ -1709,6 +1709,11 @@ void WidgetView::UpdateBuffer( struct tizen_remote_surface *surface, struct wl_b
 
   //get tbm surface from buffer
   tbm_surface_h tbmSurface = static_cast< tbm_surface_h >( wl_buffer_get_user_data( buffer ) );
+  if( !tbmSurface )
+  {
+    DALI_LOG_ERROR("tbm surface is NULL");
+    return;
+  }
   UpdateImageSource( tbmSurface );
 
   if( mBuffer != NULL && tizen_remote_surface_get_version( surface ) >= TIZEN_REMOTE_SURFACE_RELEASE_SINCE_VERSION )