[NUI] Fix VD Svace issue (#696)
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Thu, 31 Jan 2019 05:09:59 +0000 (14:09 +0900)
committerGitHub <noreply@github.com>
Thu, 31 Jan 2019 05:09:59 +0000 (14:09 +0900)
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/internal/Xaml/CreateValuesVisitor.cs
src/Tizen.NUI/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs
src/Tizen.NUI/src/public/Window.cs

index ce95361..cdc919b 100755 (executable)
@@ -315,7 +315,7 @@ namespace Tizen.NUI.Xaml
                         enode.SkipProperties.Add(name);
                     var value = Context.Values[node];
                     var serviceProvider = new XamlServiceProvider(enode, Context);
-                    var convertedValue = value.ConvertTo(parameter.ParameterType, () => parameter, serviceProvider);
+                    var convertedValue = value?.ConvertTo(parameter.ParameterType, () => parameter, serviceProvider);
                     array[i] = convertedValue;
                 }
     
index adcc068..57a975b 100755 (executable)
@@ -28,13 +28,14 @@ namespace Tizen.NUI.Binding
                     return;
                 if (IsSealed)
                     throw new InvalidOperationException("Can not change Property once the Trigger has been applied.");
+
                 _property = value;
 
                 //convert the value
                 if (_property != null && s_valueConverter != null)
                 {
-                    Func<MemberInfo> minforetriever = () => Property.DeclaringType.GetRuntimeProperty(Property.PropertyName);
-                    Value = s_valueConverter.Convert(Value, Property.ReturnType, minforetriever, null);
+                    Func<MemberInfo> minforetriever = () => _property.DeclaringType.GetRuntimeProperty(_property.PropertyName);
+                    Value = s_valueConverter.Convert(Value, _property.ReturnType, minforetriever, null);
                 }
             }
         }
@@ -52,8 +53,8 @@ namespace Tizen.NUI.Binding
                 //convert the value
                 if (_property != null && s_valueConverter != null)
                 {
-                    Func<MemberInfo> minforetriever = () => Property.DeclaringType.GetRuntimeProperty(Property.PropertyName);
-                    value = s_valueConverter.Convert(value, Property.ReturnType, minforetriever, null);
+                    Func<MemberInfo> minforetriever = () => _property.DeclaringType.GetRuntimeProperty(_property.PropertyName);
+                    value = s_valueConverter.Convert(value, _property.ReturnType, minforetriever, null);
                 }
                 _triggerValue = value;
             }
index 976471a..51099a4 100755 (executable)
@@ -686,7 +686,7 @@ namespace Tizen.NUI
         {
             if (depth < LayersChildren?.Count)
             {
-                Layer ret = LayersChildren[Convert.ToInt32(depth)];
+                Layer ret = LayersChildren?[Convert.ToInt32(depth)];
                 return ret;
             }
             else