From 44835a4a267db3a21dec7cc325909f7b66a7a314 Mon Sep 17 00:00:00 2001 From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Fri, 12 Oct 2018 15:47:43 +0900 Subject: [PATCH] [NUI] Fix SVACE issue (#511) --- src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs b/src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs index 94de613..8f9a3f5 100755 --- a/src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs @@ -157,7 +157,7 @@ namespace Tizen.NUI.Binding switch (e.Action) { case NotifyCollectionChangedAction.Add: - if (e.NewStartingIndex == -1 || e.NewItems.Count > 1) + if (e.NewStartingIndex == -1 || e.NewItems?.Count > 1) goto case NotifyCollectionChangedAction.Reset; var newItem = e.NewItems[0] as TRestrict; @@ -168,7 +168,7 @@ namespace Tizen.NUI.Binding handler(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, e.NewItems, outerIndex)); break; case NotifyCollectionChangedAction.Move: - if (e.NewStartingIndex == -1 || e.OldStartingIndex == -1 || e.NewItems.Count > 1) + if (e.NewStartingIndex == -1 || e.OldStartingIndex == -1 || e.NewItems?.Count > 1) goto case NotifyCollectionChangedAction.Reset; var movedItem = e.NewItems[0] as TRestrict; -- 2.7.4