[NUI] Fix SVACE issue (#449)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 4 Sep 2018 07:58:24 +0000 (16:58 +0900)
committerGitHub <noreply@github.com>
Tue, 4 Sep 2018 07:58:24 +0000 (16:58 +0900)
src/Tizen.NUI/src/public/XamlBinding/ContentPage.cs

index 3c2647a..1ddfc1e 100755 (executable)
@@ -162,10 +162,12 @@ namespace Tizen.NUI
             //Release your own unmanaged resources here.
             //You should not access any managed member here except static instance.
             //because the execution order of Finalizes is non-deterministic.
-            Window.Instance.Remove(Root);
-            Root?.Dispose();
-            Root = null;
-
+            if(Root != null) 
+            {
+                Window.Instance.Remove(Root);
+                Root.Dispose();
+                Root = null;
+            }
             base.Dispose(type);
         }