From 83f51abbcfe9a8e72424ae98cc93df433bc76c81 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 25 Apr 2018 17:10:12 +0200 Subject: [PATCH] Defensive programming pays off --- Logic/Financial/FinancialAccount.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logic/Financial/FinancialAccount.cs b/Logic/Financial/FinancialAccount.cs index 1929f8b3..55bf2fa0 100644 --- a/Logic/Financial/FinancialAccount.cs +++ b/Logic/Financial/FinancialAccount.cs @@ -194,7 +194,7 @@ namespace Swarmops.Logic.Financial ExternalBankDataProfile oldProfile = ExternalBankDataProfileOldHack; ExternalBankDataProfile newProfile = AutomationProfile.BankDataProfile; - if (oldProfile != null && newProfile != oldProfile) + if (oldProfile != null && newProfile.Identity != oldProfile.Identity) { throw new InvalidOperationException("Defensive programming for crucial part"); }