From: Xianbing Teng Date: Tue, 12 Oct 2021 11:24:59 +0000 (+0800) Subject: [NUI] Fix issue if application info is null X-Git-Tag: submit/tizen_6.5/20220111.152356~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06627e172df1c83d235436ae04669ed67331965e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix issue if application info is null --- 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(" ", "");