mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add null check before updateresultmanifest
This commit is contained in:
parent
1ec5023fc4
commit
eeaa6f920d
2 changed files with 4 additions and 2 deletions
|
|
@ -183,6 +183,8 @@ namespace Flow.Launcher.Core.Plugin
|
|||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
token.ThrowIfCancellationRequested();
|
||||
if (results == null)
|
||||
return results;
|
||||
UpdatePluginMetadata(results, metadata, query);
|
||||
|
||||
metadata.QueryCount += 1;
|
||||
|
|
|
|||
|
|
@ -363,7 +363,7 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
|
||||
if (!match.IsSearchPrecisionScoreMet()) return false;
|
||||
|
||||
|
||||
r.Score = match.Score;
|
||||
return true;
|
||||
|
||||
|
|
@ -512,7 +512,7 @@ namespace Flow.Launcher.ViewModel
|
|||
await Task.Yield();
|
||||
|
||||
var results = await PluginManager.QueryForPlugin(plugin, query, currentCancellationToken);
|
||||
if (!currentCancellationToken.IsCancellationRequested)
|
||||
if (!currentCancellationToken.IsCancellationRequested && results != null)
|
||||
_resultsUpdateQueue.Post(new ResultsForUpdate(results, plugin.Metadata, query,
|
||||
currentCancellationToken));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue