From 0345cd2377d3591c297e399f2b13fdc30d674f7a Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 20 Jul 2020 14:31:19 +0900 Subject: [PATCH] Check RawImage ptr Change-Id: Icbc2a0788bcecf7044f007544694e037b5bd1efc Signed-off-by: Hwankyu Jhun --- screen_connector_launcher_service/launcher_service.cc | 3 +++ 1 file changed, 3 insertions(+) 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()"); -- 2.7.4