From 0d95636b0fd81bbfb71fc1e5233e4243e082a8c8 Mon Sep 17 00:00:00 2001 From: Yeechan Lu Date: Sun, 23 Mar 2014 02:46:14 +0800 Subject: [PATCH] Allow plugins return null --- Wox/Commands/PluginCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wox/Commands/PluginCommand.cs b/Wox/Commands/PluginCommand.cs index 239d60a4d..513e86569 100644 --- a/Wox/Commands/PluginCommand.cs +++ b/Wox/Commands/PluginCommand.cs @@ -27,7 +27,7 @@ namespace Wox.Commands { try { - List r = thirdPlugin.Plugin.Query(q); + List r = thirdPlugin.Plugin.Query(q) ?? new List(); r.ForEach(o => { o.PluginDirectory = thirdPlugin.Metadata.PluginDirecotry;