mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Allow plugins return null
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Wox.Commands
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
List<Result> r = thirdPlugin.Plugin.Query(q);
|
List<Result> r = thirdPlugin.Plugin.Query(q) ?? new List<Result>();
|
||||||
r.ForEach(o =>
|
r.ForEach(o =>
|
||||||
{
|
{
|
||||||
o.PluginDirectory = thirdPlugin.Metadata.PluginDirecotry;
|
o.PluginDirectory = thirdPlugin.Metadata.PluginDirecotry;
|
||||||
|
|||||||
Reference in New Issue
Block a user