[NUI] Fix Svace issues
authorzhouleonlei <zhouleon.lei@samsung.com>
Tue, 29 Dec 2020 02:47:05 +0000 (10:47 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 29 Dec 2020 04:02:13 +0000 (13:02 +0900)
src/Tizen.NUI/src/internal/PropertyRangeManager.cs
src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs

index a0168b4..aefc0c8 100755 (executable)
@@ -99,7 +99,7 @@ namespace Tizen.NUI
                     // for every base class increase property start index
                     startEventPropertyIndex += (int)Tizen.NUI.PropertyRanges.DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION; // DALi uses 10,000
                     startAnimatablePropertyIndex += maxCountPerDerivation;
-                    NUILog.Debug("getStartPropertyIndex =  " + viewType.Name + "current index " + startEventPropertyIndex);
+                    NUILog.Debug("getStartPropertyIndex =  " + viewType?.Name + "current index " + startEventPropertyIndex);
                     viewType = viewType.GetTypeInfo().BaseType;
                 }
             }
index 7c2469b..751172f 100755 (executable)
@@ -133,7 +133,7 @@ namespace Tizen.NUI.Binding
                 BindableProperty implicitStyleProperty = BindableProperty.Create(nameof(ImplicitStyle), typeof(Style), typeof(View), default(Style),
                         propertyChanged: (bindable, oldvalue, newvalue) => OnImplicitStyleChanged());
                 _implicitStyles.Add(implicitStyleProperty);
-                Target.SetDynamicResource(implicitStyleProperty, type.FullName);
+                Target.SetDynamicResource(implicitStyleProperty, type?.FullName);
                 type = type.GetTypeInfo().BaseType;
                 if (s_stopAtTypes.Contains(type))
                     return;