[NUI] Fix WatchApplication crash issue (#785)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Fri, 12 Apr 2019 07:23:14 +0000 (16:23 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 12 Apr 2019 07:23:14 +0000 (16:23 +0900)
Window.Instance is null on WatchApplication.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/View.cs

index 09606c2..69033cb 100644 (file)
@@ -1288,7 +1288,7 @@ namespace Tizen.NUI.BaseComponents
 
         private void SendViewAddedEventToWindow(IntPtr data)
         {
-            Window.Instance.SendViewAdded(this);
+            Window.Instance?.SendViewAdded(this);
         }
 
         /// <summary>