From c93cec9629f557a734af63f077f93398421e2614 Mon Sep 17 00:00:00 2001 From: Hyunho Kang Date: Wed, 11 Sep 2019 13:26:38 +0900 Subject: [PATCH] Add argument check logic (#1009) * Modify native api name Signed-off-by: hyunho * Add argument check logic SendLaunchRequestAsync control parameter should not be null Signed-off-by: hyunho --- .../Tizen.Applications.ComponentBased.Common/BaseComponent.cs | 5 +++++ 1 file changed, 5 insertions(+) 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 87dba90..f65ca2f 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 /// 6 public Task 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"); -- 2.7.4