Skip to content

Commit 25c3835

Browse files
abuzuhriCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e89ea0b commit 25c3835

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/OrdersV20260101/OrderPayment.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ public override int GetHashCode()
9797
{
9898
int hashCode = 41;
9999
if (this.PaymentExecutions != null)
100-
hashCode = hashCode * 59 + this.PaymentExecutions.GetHashCode();
100+
{
101+
foreach (var paymentExecution in this.PaymentExecutions)
102+
hashCode = hashCode * 59 + (paymentExecution?.GetHashCode() ?? 0);
103+
}
101104
return hashCode;
102105
}
103106
}

0 commit comments

Comments
 (0)