Don't thown error when JsonRPCPlugin.cs don't return a JsonFeedBack when calling callback

This commit is contained in:
Kevin Zhang 2021-06-07 13:08:18 +08:00
parent ffcaa02e31
commit 18e21a8b19

View file

@ -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<JsonRPCRequestModel>(actionReponse);
if (jsonRpcRequestModel != null