summaryrefslogtreecommitdiff
path: root/screen_connector_remote_surface_evas
diff options
context:
space:
mode:
authorhyunho <hhstark.kang@samsung.com>2019-12-20 15:00:56 +0900
committerhyunho <hhstark.kang@samsung.com>2019-12-20 15:00:56 +0900
commitba89f1aa1773951233df2ffa27ea682b548047a6 (patch)
tree7f3b49f78292e6e4f67a7dbf4a6523389c157f06 /screen_connector_remote_surface_evas
parentf1bdc5134bb3528309d6406f51128ce442a286a4 (diff)
downloadscreen-connector-ba89f1aa1773951233df2ffa27ea682b548047a6.tar.gz
screen-connector-ba89f1aa1773951233df2ffa27ea682b548047a6.tar.bz2
screen-connector-ba89f1aa1773951233df2ffa27ea682b548047a6.zip
Add null check for raw value
Change-Id: Ic6d68f585e0e5ae0aa1a413a58c7e56e88f9b687 Signed-off-by: hyunho <hhstark.kang@samsung.com>
Diffstat (limited to 'screen_connector_remote_surface_evas')
-rw-r--r--screen_connector_remote_surface_evas/remote_surface_evas.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen_connector_remote_surface_evas/remote_surface_evas.cc b/screen_connector_remote_surface_evas/remote_surface_evas.cc
index 2d8cd14..2c7b284 100644
--- a/screen_connector_remote_surface_evas/remote_surface_evas.cc
+++ b/screen_connector_remote_surface_evas/remote_surface_evas.cc
@@ -471,7 +471,7 @@ void RemoteSurfaceEvas::OnBufferChanged(int type, std::shared_ptr<WlBuffer> tbm,
if (type != TIZEN_REMOTE_SURFACE_BUFFER_TYPE_TBM)
return;
- if (tbm.get() == nullptr) {
+ if (tbm.get() == nullptr || tbm->GetRaw() == nullptr) {
LOGW("Null tbm");
return;
}