mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
Updated null checks to also check for empty string or whitespace (#5272)
This commit is contained in:
parent
ed14f28644
commit
04402c1316
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user