1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

Updated null checks to also check for empty string or whitespace (#5272)

This commit is contained in:
Conner Turnbull
2025-01-15 12:35:07 -05:00
committed by GitHub
parent ed14f28644
commit 04402c1316

View File

@ -2081,7 +2081,7 @@ public class StripePaymentService : IPaymentService
];
}
if (gatewayCustomerId != null)
if (!string.IsNullOrWhiteSpace(gatewayCustomerId))
{
var gatewayCustomer = await _stripeAdapter.CustomerGetAsync(gatewayCustomerId);
@ -2091,7 +2091,7 @@ public class StripePaymentService : IPaymentService
}
}
if (gatewaySubscriptionId != null)
if (!string.IsNullOrWhiteSpace(gatewaySubscriptionId))
{
var gatewaySubscription = await _stripeAdapter.SubscriptionGetAsync(gatewaySubscriptionId);