From: azijurr Date: Thu, 16 Jan 2025 11:47:42 +0000 (+0600) Subject: Handle exception during ReceivedAppControl.ExtraData.Get(key) operation. X-Git-Tag: accepted/tizen/unified/20250121.013556^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified;p=profile%2Fiot%2Fapps%2Fdotnet%2Fshare-panel.git Handle exception during ReceivedAppControl.ExtraData.Get(key) operation. Change-Id: I46ed2e8e8b41852a10df98e3295a0a39a08d2efc Signed-off-by: azijurr --- diff --git a/SharePanel/SharePanel/SharePanel.cs b/SharePanel/SharePanel/SharePanel.cs index 2df0336..2271ec6 100644 --- a/SharePanel/SharePanel/SharePanel.cs +++ b/SharePanel/SharePanel/SharePanel.cs @@ -46,7 +46,6 @@ namespace SharePanel string caller = control.ApplicationId; fileList = new List(); - string key = AppConstants.KEY_PATH; if (control.Uri != null) { @@ -56,7 +55,15 @@ namespace SharePanel } else if (control.ExtraData != null) { - fileList = (List)control.ExtraData.Get(key); + try + { + fileList = (List)control.ExtraData.Get(AppConstants.KEY_PATH); + } + catch (System.Exception ex) + { + Logger.Error(ex.ToString()); + } + for (int i = 0; i < fileList.Count; i++) { Logger.Debug("Filename is " + fileList[i]); diff --git a/packaging/org.tizen.share-panel_common-2.0.1.tpk b/packaging/org.tizen.share-panel_common-2.0.1.tpk index ad857e9..49c16cf 100644 Binary files a/packaging/org.tizen.share-panel_common-2.0.1.tpk and b/packaging/org.tizen.share-panel_common-2.0.1.tpk differ