From 37d530504c966eefc409c5dcf5d5b71cd3fd1cad Mon Sep 17 00:00:00 2001 From: Xianbing Teng Date: Tue, 12 Oct 2021 19:24:59 +0800 Subject: [PATCH] [NUI] Fix issue if application info is null --- src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs b/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs index 8af5985..64ad26b 100755 --- a/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs +++ b/src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs @@ -154,8 +154,10 @@ namespace Tizen.NUI public void Run(string[] args) { TizenSynchronizationContext.Initialize(); - - args[0] = Tizen.Applications.Application.Current.ApplicationInfo.ExecutablePath; + if (Tizen.Applications.Application.Current?.ApplicationInfo != null) + { + args[0] = Tizen.Applications.Application.Current.ApplicationInfo.ExecutablePath; + } if (string.IsNullOrEmpty(args[0])) { args[0] = this.GetType().Assembly.FullName.Replace(" ", ""); -- 2.7.4