Skip to content

Commit 8311b39

Browse files
committed
Add null check for OnCollectionChanged
1 parent e0c345a commit 8311b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/ViewModel/ResultsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public class ResultCollection : List<ResultViewModel>, INotifyCollectionChanged
249249

250250
protected void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
251251
{
252-
CollectionChanged(this, e);
252+
CollectionChanged?.Invoke(this, e);
253253
}
254254

255255
public void BulkAddAll(List<ResultViewModel> resultViews)

0 commit comments

Comments
 (0)