[NUI] Fix the SVACE issue.
authorzhouhao02 <haozhou.zhou@samsung.com>
Tue, 17 Oct 2023 02:29:02 +0000 (10:29 +0800)
committerEunki Hong <h.pichulia@gmail.com>
Wed, 25 Oct 2023 12:48:44 +0000 (21:48 +0900)
src/Tizen.NUI.Components/Controls/Button.cs

index 6601b2b..a4e0b90 100755 (executable)
@@ -790,7 +790,15 @@ namespace Tizen.NUI.Components
         }
         private StringSelector InternalIconURLSelector
         {
-            get => buttonIcon?.ResourceUrlSelector == null ? null : new StringSelector(buttonIcon.ResourceUrlSelector);
+            get
+            {
+                Selector<string> resourceUrlSelector = buttonIcon?.ResourceUrlSelector;
+                if(resourceUrlSelector == null)
+                {
+                    return null;
+                }
+                return new StringSelector(resourceUrlSelector);
+            }
             set
             {
                 if (value == null || buttonIcon == null)