Index: ios/chrome/browser/payments/payment_method_selection_coordinator.mm |
diff --git a/ios/chrome/browser/payments/payment_method_selection_coordinator.mm b/ios/chrome/browser/payments/payment_method_selection_coordinator.mm |
index a6a614ac1382d506b3a26df98ce09a3a65e5b860..4d32e858aca49319783b1c2e8099f0b2e8ff54b2 100644 |
--- a/ios/chrome/browser/payments/payment_method_selection_coordinator.mm |
+++ b/ios/chrome/browser/payments/payment_method_selection_coordinator.mm |
@@ -67,6 +67,10 @@ |
static_cast<int64_t>(0.2 * NSEC_PER_SEC)), |
dispatch_get_main_queue(), ^{ |
PaymentMethodSelectionCoordinator* strongSelf = weakSelf; |
+ // Early return if the coordinator has been deallocated. |
+ if (!strongSelf) |
+ return; |
+ |
strongSelf.viewController.view.userInteractionEnabled = YES; |
[strongSelf.delegate |
paymentMethodSelectionCoordinator:strongSelf |