Skip to content

Commit

Permalink
fix: validate for null
Browse files Browse the repository at this point in the history
Co-authored-by: David <github.site@torick.net>
  • Loading branch information
ajpinedam and dr1rrb committed Aug 20, 2020
1 parent 59cf2a8 commit 4b7a9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Controls/Pivot/Pivot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private static void OnTitlePropertyChanged(DependencyObject dependencyObject, De
private void OnSelectedItemPropertyChanged(object oldValue, object newValue)
{
var removedItems = oldValue == null ? new object[0] : new [] { oldValue };
var addedItems = new [] { newValue };
var addedItems = newValue == null ? new object[0] : new [] { newValue };

OnSelectedItemChangedPartial(oldValue, newValue);

Expand Down

0 comments on commit 4b7a9d0

Please sign in to comment.