Handling uncaught exception 64/188264/1
authorhyunho <hhstark.kang@samsung.com>
Mon, 3 Sep 2018 10:41:25 +0000 (19:41 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 3 Sep 2018 10:41:25 +0000 (19:41 +0900)
Change-Id: I14af7892c464a679d485f3fe53c6e09e934a5cc2
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watchface-complication/complication.cc

index e37240c..681d1f3 100644 (file)
@@ -50,7 +50,11 @@ Complication::Complication(int id, int supported_types, int supported_event_type
 }
 
 Complication::~Complication() {
-  ComplicationConnector::GetInst().RemovePackageEventListener(impl_.get());
+  try {
+    ComplicationConnector::GetInst().RemovePackageEventListener(impl_.get());
+  } catch (Exception &ex) {
+    LOGE("%s %d", ex.what(), ex.GetErrorCode());
+  }
 }
 
 Complication::Impl::Impl(Complication* parent, int id,