IdentityServer3.EntityFramework
IdentityServer3.EntityFramework copied to clipboard
fix ConsentStore null excretion when no existing consent.
because the return type is Task<IdentityServer3.Core.Models.Consent>, so we should return Task.FromResult<IdentityServer3.Core.Models.Consent>(null) instead of null. Otherwise, null exception will be raised.
The method is marked with async, so the null return is already a Task. The compiler does this.
Thanks Allen, but at runtime, an exception was thrown. I was using .Net framework 4.6.1. After I changing null with Task.FromResult<IdentityServer3.Core.Models.Consent>(null), the exception was resolved. Could you check again? Thanks.