From e7ab6da06872d49eb0de207f652afe638eddf6ec Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 21 Mar 2018 07:35:27 -0400 Subject: [PATCH] fix param names for arg null exceptions --- src/App/Models/Data/CipherData/IdentityDataModel.cs | 2 +- src/App/Models/Data/CipherData/LoginDataModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Models/Data/CipherData/IdentityDataModel.cs b/src/App/Models/Data/CipherData/IdentityDataModel.cs index 825184a91..7ef336d89 100644 --- a/src/App/Models/Data/CipherData/IdentityDataModel.cs +++ b/src/App/Models/Data/CipherData/IdentityDataModel.cs @@ -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; diff --git a/src/App/Models/Data/CipherData/LoginDataModel.cs b/src/App/Models/Data/CipherData/LoginDataModel.cs index 6316306d8..d1078f060 100644 --- a/src/App/Models/Data/CipherData/LoginDataModel.cs +++ b/src/App/Models/Data/CipherData/LoginDataModel.cs @@ -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));