[NUI] Fix Xaml issue
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 18 Feb 2021 07:46:12 +0000 (16:46 +0900)
committerhuiyueun <35286162+huiyueun@users.noreply.github.com>
Thu, 18 Feb 2021 08:34:38 +0000 (17:34 +0900)
Fix xaml issue,
Add property null check

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Xaml/ApplyPropertiesVisitor.cs

index bc8201c..4081993 100755 (executable)
@@ -573,7 +573,7 @@ namespace Tizen.NUI.Xaml
             if (!IsVisibleFrom(setter, context.RootElement))
                 return false;
 
-            if (propertyInfo.PropertyType != property.ReturnType)
+            if (property != null && propertyInfo.PropertyType != property.ReturnType)
                 return false;
 
             if (serviceProvider != null && serviceProvider.IProvideValueTarget != null)