mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Fixed null check.
This commit is contained in:
@ -28,7 +28,7 @@ namespace Bit.Api.Utilities
|
||||
{
|
||||
context.HttpContext.Response.StatusCode = 400;
|
||||
|
||||
if(badRequestException != null)
|
||||
if(badRequestException.ModelState != null)
|
||||
{
|
||||
errorModel = new ErrorResponseModel(badRequestException.ModelState);
|
||||
}
|
||||
|
Reference in New Issue
Block a user