summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyunho Kang <hhstark.kang@samsung.com>2019-09-11 13:26:38 +0900
committerGitHub <noreply@github.com>2019-09-11 13:26:38 +0900
commitc93cec9629f557a734af63f077f93398421e2614 (patch)
treeee89b81d336e53ef10ee7c2db9f69a0e33f2c834
parentdbc907b0773d6c08e630725c1d1b7d5bf07e35d9 (diff)
downloadtizenfx-c93cec9629f557a734af63f077f93398421e2614.tar.gz
tizenfx-c93cec9629f557a734af63f077f93398421e2614.tar.bz2
tizenfx-c93cec9629f557a734af63f077f93398421e2614.zip
Add argument check logic (#1009)
* Modify native api name Signed-off-by: hyunho <hhstark.kang@samsung.com> * Add argument check logic SendLaunchRequestAsync control parameter should not be null Signed-off-by: hyunho <hhstark.kang@samsung.com>
-rw-r--r--src/Tizen.Applications.ComponentBased/Tizen.Applications.ComponentBased.Common/BaseComponent.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Tizen.Applications.ComponentBased/Tizen.Applications.ComponentBased.Common/BaseComponent.cs b/src/Tizen.Applications.ComponentBased/Tizen.Applications.ComponentBased.Common/BaseComponent.cs
index 87dba90f4..f65ca2f96 100644
--- a/src/Tizen.Applications.ComponentBased/Tizen.Applications.ComponentBased.Common/BaseComponent.cs
+++ b/src/Tizen.Applications.ComponentBased/Tizen.Applications.ComponentBased.Common/BaseComponent.cs
@@ -168,6 +168,11 @@ namespace Tizen.Applications.ComponentBased.Common
/// <since_tizen> 6 </since_tizen>
public Task<AppControlResult> SendLaunchRequestAsync(AppControl control, AppControlReplyCallback replyAfterLaunching)
{
+ if (control == null)
+ {
+ throw new ArgumentNullException(nameof(control));
+ }
+
int ret = Interop.AppControl.SetCallerInstanceId(control.SafeAppControlHandle, Id);
if (ret != 0)
throw new InvalidOperationException("Failed to set id");