1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

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

(cherry picked from commit 04402c1316328c1c0b72a344a95dec245cb2b00e)
This commit is contained in:
Conner Turnbull 2025-01-15 12:35:07 -05:00 committed by Conner Turnbull
parent 1cc45d1abe
commit 129c6b7bfc
No known key found for this signature in database

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);