mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Fix a issues that JSONPRCAction could be null.
This commit is contained in:
@@ -43,6 +43,8 @@ namespace Wox.PluginLoader
|
|||||||
JsonRPCResult result1 = result;
|
JsonRPCResult result1 = result;
|
||||||
result.Action = (c) =>
|
result.Action = (c) =>
|
||||||
{
|
{
|
||||||
|
if (result1.JsonRPCAction == null) return false;
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(result1.JsonRPCAction.Method))
|
if (!string.IsNullOrEmpty(result1.JsonRPCAction.Method))
|
||||||
{
|
{
|
||||||
if (result1.JsonRPCAction.Method.StartsWith("Wox."))
|
if (result1.JsonRPCAction.Method.StartsWith("Wox."))
|
||||||
|
|||||||
Reference in New Issue
Block a user