Skip to content

Commit 5f6ac6a

Browse files
taooceroscoderabbitai[bot]
authored andcommitted
Update Flow.Launcher/ViewModel/ResultsViewModel.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 51a16cc commit 5f6ac6a

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
@@ -233,7 +233,7 @@ private List<ResultViewModel> NewResults(ICollection<ResultsForUpdate> resultsFo
233233
if (!resultsForUpdates.Any())
234234
return Results;
235235

236-
return Results.Where(r => r != null && resultsForUpdates.All(u => u.ID != r.Result.PluginID))
236+
return Results.Where(r => r?.Result != null && resultsForUpdates.All(u => u.ID != r.Result.PluginID))
237237
.Concat(resultsForUpdates.SelectMany(u => u.Results, (u, r) => new ResultViewModel(r, _settings)))
238238
.OrderByDescending(rv => rv.Result.Score)
239239
.ToList();

0 commit comments

Comments
 (0)