From: hyunho Date: Mon, 3 Sep 2018 10:41:25 +0000 (+0900) Subject: Handling uncaught exception X-Git-Tag: accepted/tizen/unified/20180904.180624~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F188264%2F1;p=platform%2Fcore%2Fappfw%2Fwatchface-complication.git Handling uncaught exception Change-Id: I14af7892c464a679d485f3fe53c6e09e934a5cc2 Signed-off-by: hyunho --- diff --git a/watchface-complication/complication.cc b/watchface-complication/complication.cc index e37240c..681d1f3 100644 --- a/watchface-complication/complication.cc +++ b/watchface-complication/complication.cc @@ -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,