Skip to content

Commit e59903a

Browse files
committed
Fix possible null exception in plugin store item view model
1 parent 60de423 commit e59903a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public string Category
6161
[RelayCommand]
6262
private void ShowCommandQuery(string action)
6363
{
64-
var actionKeyword = PluginManagerData.Metadata.ActionKeywords.Any() ? PluginManagerData.Metadata.ActionKeywords[0] + " " : String.Empty;
64+
var actionKeyword = (PluginManagerData.Metadata.ActionKeywords?.Any() ?? false) ? PluginManagerData.Metadata.ActionKeywords[0] + " " : string.Empty;
6565
App.API.ChangeQuery($"{actionKeyword}{action} {_plugin.Name}");
6666
App.API.ShowMainWindow();
6767
}

0 commit comments

Comments
 (0)