Fix a issues that JSONPRCAction could be null.

This commit is contained in:
qianlifeng
2014-10-22 16:20:50 +08:00
parent be33ac3c4f
commit 3634ca624d

View File

@@ -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."))