From 18e21a8b19fe0332a15f0b745e95dee483a54053 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Mon, 7 Jun 2021 13:08:18 +0800 Subject: [PATCH] Don't thown error when JsonRPCPlugin.cs don't return a JsonFeedBack when calling callback --- Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs index 90ab6f010..11d1abb63 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs @@ -91,6 +91,8 @@ namespace Flow.Launcher.Core.Plugin else { string actionReponse = ExecuteCallback(result.JsonRPCAction); + if (string.IsNullOrEmpty(actionReponse)) + return false; JsonRPCRequestModel jsonRpcRequestModel = JsonSerializer.Deserialize(actionReponse); if (jsonRpcRequestModel != null