Defensive programming pays off
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user