Defensive programming pays off

This commit is contained in:
Rick Falkvinge
2018-04-25 17:10:12 +02:00
parent ce4b4bdb66
commit 83f51abbcf
+1 -1
View File
@@ -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");
}