[NUI] Fix svace issues
authorXianbing Teng <xb.teng@samsung.com>
Thu, 6 Apr 2023 13:08:16 +0000 (21:08 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 7 Apr 2023 03:45:40 +0000 (12:45 +0900)
src/Tizen.NUI.Wearable/src/public/NUIWatchApplication.cs
src/Tizen.NUI/src/public/Application/NUIApplication.cs

index ad696ef..d466716 100755 (executable)
@@ -216,7 +216,7 @@ namespace Tizen.NUI
         protected override void OnAppControlReceived(AppControlReceivedEventArgs e)
         {
             Log.Debug("NUI", "OnAppControlReceived() is called!");
-            if (e != null)
+            if (e != null && e.ReceivedAppControl != null)
             {
                 Log.Debug("NUI", "OnAppControlReceived() is called! ApplicationId=" + e.ReceivedAppControl.ApplicationId);
                 Log.Debug("NUI", "CallerApplicationId=" + e.ReceivedAppControl.CallerApplicationId + "   IsReplyRequest=" + e.ReceivedAppControl.IsReplyRequest);
index 525bbb2..1d4b940 100755 (executable)
@@ -556,7 +556,7 @@ namespace Tizen.NUI
         {
             Tizen.Tracer.Begin("[NUI] OnPreCreate()");
 
-            if (borderEnabled)
+            if (borderEnabled && GetDefaultWindow() != null)
             {
                 GetDefaultWindow().EnableBorder(borderInterface, new Window.BorderCloseDelegate(Exit));
             }