Check null tbm
authorhyunho <hhstark.kang@samsung.com>
Mon, 16 Dec 2019 04:01:09 +0000 (13:01 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 16 Dec 2019 04:23:12 +0000 (13:23 +0900)
Change-Id: I56b015462a155eb7b13f323997b5122bdc1b61ea
Signed-off-by: hyunho <hhstark.kang@samsung.com>
screen_connector_remote_surface_evas/remote_surface_evas.cc

index 496e84424c9ac51f5a01fc20a706ad3b2deb6347..d3bcc86229640f1a42fe5e7e1a66ac349bb44712 100644 (file)
@@ -471,6 +471,11 @@ void RemoteSurfaceEvas::OnBufferChanged(int type, std::shared_ptr<WlBuffer> tbm,
   if (type != TIZEN_REMOTE_SURFACE_BUFFER_TYPE_TBM)
     return;
 
+  if (tbm.get() == nullptr) {
+      LOGW("Null tbm");
+      return;
+  }
+
   if (GetType() == RemoteSurface::WATCH && RemoteSurface::IsBound())
     return;