From 3634ca624dc1af928212e78fff91ae7803374fa5 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Wed, 22 Oct 2014 16:20:50 +0800 Subject: [PATCH] Fix a issues that JSONPRCAction could be null. --- Wox/PluginLoader/BasePlugin.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Wox/PluginLoader/BasePlugin.cs b/Wox/PluginLoader/BasePlugin.cs index 81c6154820..0edb5b3f5e 100644 --- a/Wox/PluginLoader/BasePlugin.cs +++ b/Wox/PluginLoader/BasePlugin.cs @@ -43,6 +43,8 @@ namespace Wox.PluginLoader JsonRPCResult result1 = result; result.Action = (c) => { + if (result1.JsonRPCAction == null) return false; + if (!string.IsNullOrEmpty(result1.JsonRPCAction.Method)) { if (result1.JsonRPCAction.Method.StartsWith("Wox."))