fix param names for arg null exceptions

This commit is contained in:
Kyle Spearrin 2018-03-21 07:35:27 -04:00
parent ee881f67ee
commit e7ab6da068
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ namespace Bit.App.Models.Data
{ {
if(response?.Identity == null) if(response?.Identity == null)
{ {
throw new ArgumentNullException(nameof(response.Card)); throw new ArgumentNullException(nameof(response.Identity));
} }
Title = response.Identity.Title; Title = response.Identity.Title;

View file

@ -16,7 +16,7 @@ namespace Bit.App.Models.Data
{ {
if(response?.Login == null) if(response?.Login == null)
{ {
throw new ArgumentNullException(nameof(response.Card)); throw new ArgumentNullException(nameof(response.Login));
} }
Uris = response.Login.Uris?.Where(u => u != null).Select(u => new LoginUriDataModel(u)); Uris = response.Login.Uris?.Where(u => u != null).Select(u => new LoginUriDataModel(u));