Null check for deserialize
This commit is contained in:
parent
02c98137c7
commit
812bffe6d0
|
|
@ -25,6 +25,11 @@ namespace Microsoft.AspNetCore.SignalR
|
|||
return Task.Run(() =>
|
||||
{
|
||||
var jsonInvocation = _serializer.Deserialize<JsonNetInvocationDescriptor>(reader);
|
||||
if (jsonInvocation == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var invocation = new InvocationDescriptor
|
||||
{
|
||||
Id = jsonInvocation.Id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue