[NUI] Fix svace issue
authorzhouleonlei <zhouleon.lei@samsung.com>
Tue, 9 Nov 2021 01:51:17 +0000 (09:51 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 02:47:10 +0000 (11:47 +0900)
src/Tizen.NUI/src/internal/Common/BackKeyManager.cs

index b51cf3c..4e564b0 100755 (executable)
@@ -94,9 +94,8 @@ namespace Tizen.NUI
             else
             {
                 // If they have same parent, ready to compare!
-                if (parent1 == parent2)
+                if (parent1 == parent2 && comparison1 != null)
                 {
-
                     if (comparison1.GetType().FullName.Contains("Layer"))
                     {
                         // If comparison1 is Layer, comparison2 is also Layer because only window can have Layer as child in NUI.