diff --git a/Wox/ViewModel/MainViewModel.cs b/Wox/ViewModel/MainViewModel.cs index cd2214a69a..780c6d6e91 100644 --- a/Wox/ViewModel/MainViewModel.cs +++ b/Wox/ViewModel/MainViewModel.cs @@ -184,7 +184,7 @@ namespace Wox.ViewModel var result = results.SelectedItem?.RawResult; if (result != null) // SelectedItem returns null if selection is empty. { - bool hideWindow = result.Action(new ActionContext + bool hideWindow = result.Action != null && result.Action(new ActionContext { SpecialKeyState = GlobalHotkey.Instance.CheckModifiers() });