Null check for deserialize

This commit is contained in:
BrennanConroy 2016-11-08 15:41:54 -08:00
parent 02c98137c7
commit 812bffe6d0
1 changed files with 5 additions and 0 deletions

View File

@ -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,