Skip to content

Commit

Permalink
Update NavigationView.Properties.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski authored Jun 10, 2024
1 parent a260025 commit 4dfcbad
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,12 @@ private void OnMenuItemsSource_CollectionChanged(object? sender, IList collectio

case NotifyCollectionChangedAction.Remove:
foreach (var item in e.OldItems)

Check warning on line 470 in src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
{
if (!e.NewItems.Contains(item))

Check warning on line 472 in src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs

View workflow job for this annotation

GitHub Actions / build

Dereference of a possibly null reference.
{
collection.Remove(item);
}
}

Check warning on line 476 in src/Wpf.Ui/Controls/NavigationView/NavigationView.Properties.cs

View workflow job for this annotation

GitHub Actions / build

break;

case NotifyCollectionChangedAction.Move:
Expand Down

0 comments on commit 4dfcbad

Please sign in to comment.