1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-21 03:24:31 -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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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