1
0
mirror of https://github.com/bitwarden/server synced 2026-01-03 17:14:00 +00:00

Fixed null check.

This commit is contained in:
Kyle Spearrin
2016-06-02 10:08:26 -04:00
parent 3fdb0fcf67
commit 585d7b4afd

View File

@@ -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);
}