[NUI] Fix svace issues in EXaml and Accessibility (#2936)
authorJiyun Yang <ji.yang@samsung.com>
Wed, 21 Apr 2021 03:52:21 +0000 (12:52 +0900)
committerGitHub <noreply@github.com>
Wed, 21 Apr 2021 03:52:21 +0000 (12:52 +0900)
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/EXaml/Operation/SetProperty.cs
src/Tizen.NUI/src/public/Accessibility/Accessibility.cs

index ef9f547..1b21e89 100755 (executable)
@@ -38,6 +38,11 @@ namespace Tizen.NUI.EXaml
             object instance = LoadEXaml.GatheredInstances[instanceIndex];
             var property = GatherProperty.GatheredProperties[propertyIndex];
 
+            if (property == null)
+            {
+                return;
+            }
+
             if (value is Instance)
             {
                 int valueIndex = (value as Instance).Index;
index f36489d..c467ae9 100755 (executable)
@@ -169,7 +169,7 @@ namespace Tizen.NUI.Accessibility
         {
             using (View view = GetCurrentlyHighlightedView())
             {
-                return view.ClearAccessibilityHighlight();
+                return view?.ClearAccessibilityHighlight() ?? false;
             }
         }
         #endregion Method