Allow plugins return null

This commit is contained in:
Yeechan Lu
2014-03-23 02:46:14 +08:00
parent 9ad424c537
commit 0d95636b0f

View File

@@ -27,7 +27,7 @@ namespace Wox.Commands
{
try
{
List<Result> r = thirdPlugin.Plugin.Query(q);
List<Result> r = thirdPlugin.Plugin.Query(q) ?? new List<Result>();
r.ForEach(o =>
{
o.PluginDirectory = thirdPlugin.Metadata.PluginDirecotry;