Merge pull request #6498 from sesamefly/patch-1

Check `context.Metadata.ContainerType` if is null.
pull/6514/head
maliming 5 years ago committed by GitHub
commit 90a7039d50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,7 +23,8 @@ namespace Volo.Abp.AspNetCore.Mvc.ModelBinding
return null;
}
if (!context.Metadata.ContainerType.IsAssignableTo<IHasExtraProperties>())
if (context.Metadata.ContainerType == null ||
!context.Metadata.ContainerType.IsAssignableTo<IHasExtraProperties>())
{
return null;
}

Loading…
Cancel
Save