Skip to content

Commit

Permalink
fix param names for arg null exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Mar 21, 2018
1 parent ee881f6 commit e7ab6da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App/Models/Data/CipherData/IdentityDataModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public IdentityDataModel(CipherResponse response)
{
if(response?.Identity == null)
{
throw new ArgumentNullException(nameof(response.Card));
throw new ArgumentNullException(nameof(response.Identity));
}

Title = response.Identity.Title;
Expand Down
2 changes: 1 addition & 1 deletion src/App/Models/Data/CipherData/LoginDataModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public LoginDataModel(CipherResponse response)
{
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));
Expand Down

0 comments on commit e7ab6da

Please sign in to comment.