add param null validate

pull/6498/head
sesamefly 5 years ago committed by GitHub
parent 492ad08cf3
commit 0f1a8d322c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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