Skip to content

Commit 18e21a8

Browse files
committed
Don't thown error when JsonRPCPlugin.cs don't return a JsonFeedBack when calling callback
1 parent ffcaa02 commit 18e21a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPlugin.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ private List<Result> ParseResults(JsonRPCQueryResponseModel queryResponseModel)
9191
else
9292
{
9393
string actionReponse = ExecuteCallback(result.JsonRPCAction);
94+
if (string.IsNullOrEmpty(actionReponse))
95+
return false;
9496
JsonRPCRequestModel jsonRpcRequestModel =
9597
JsonSerializer.Deserialize<JsonRPCRequestModel>(actionReponse);
9698
if (jsonRpcRequestModel != null

0 commit comments

Comments
 (0)