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