[NUI] Fix SVACE issue (#511) 5.0.0.14562 5.0_M2
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 12 Oct 2018 06:47:43 +0000 (15:47 +0900)
committerGitHub <noreply@github.com>
Fri, 12 Oct 2018 06:47:43 +0000 (15:47 +0900)
src/Tizen.NUI/src/internal/XamlBinding/ObservableWrapper.cs

index 94de613..8f9a3f5 100755 (executable)
@@ -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;