diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2020-07-20 14:31:19 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2020-07-20 14:31:19 +0900 |
commit | 0345cd2377d3591c297e399f2b13fdc30d674f7a (patch) | |
tree | 689ba38e6b07f00fc2e372aac74a858f76320c61 /screen_connector_launcher_service | |
parent | b76b9024037ef9c0c85dfc8c464adee19ee3d6cd (diff) | |
download | screen-connector-0345cd2377d3591c297e399f2b13fdc30d674f7a.tar.gz screen-connector-0345cd2377d3591c297e399f2b13fdc30d674f7a.tar.bz2 screen-connector-0345cd2377d3591c297e399f2b13fdc30d674f7a.zip |
Check RawImage ptr
Change-Id: Icbc2a0788bcecf7044f007544694e037b5bd1efc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Diffstat (limited to 'screen_connector_launcher_service')
-rw-r--r-- | screen_connector_launcher_service/launcher_service.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/screen_connector_launcher_service/launcher_service.cc b/screen_connector_launcher_service/launcher_service.cc index ced3de5..87f5378 100644 --- a/screen_connector_launcher_service/launcher_service.cc +++ b/screen_connector_launcher_service/launcher_service.cc @@ -69,6 +69,9 @@ int LauncherService::Impl::LaunchDone(uint32_t serial) { } int LauncherService::Impl::Reset(uint32_t serial) { + if (raw_image_.get() == nullptr) + return 0; + if (raw_image_->GetImageType() == ImageType::RemoteSurfaceTBM || raw_image_->GetImageType() == ImageType::RemoteSurfaceImageFile) { _W("Unredirect()"); |