Skip to content

Commit 81b7a1c

Browse files
Merge pull request #169 from TylerLeonhardt/patch-1
switch null to new JObject so it can still be parsed into the right type
2 parents 18f046b + 712779f commit 81b7a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonRpc/DapReciever.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected virtual Renor GetRenor(JToken @object)
5757
{
5858
return new InvalidRequest(null, "No command given");
5959
}
60-
return new Request(sequence, command.Value<string>(), request.TryGetValue("arguments", out var body) ? body : null);
60+
return new Request(sequence, command.Value<string>(), request.TryGetValue("arguments", out var body) ? body : new JObject());
6161
}
6262
if (messageType == "response")
6363
{

0 commit comments

Comments
 (0)