diff --git a/stripe/src/main/java/com/stripe/android/view/AuthActivityStarter.kt b/stripe/src/main/java/com/stripe/android/view/AuthActivityStarter.kt index d39ec2161b1..d703a068132 100644 --- a/stripe/src/main/java/com/stripe/android/view/AuthActivityStarter.kt +++ b/stripe/src/main/java/com/stripe/android/view/AuthActivityStarter.kt @@ -26,7 +26,9 @@ internal interface AuthActivityStarter { if (fragmentRef != null) { val fragment = fragmentRef.get() - fragment?.startActivityForResult(intent, requestCode) + if (fragment?.isAdded == true) { + fragment.startActivityForResult(intent, requestCode) + } } else { activity.startActivityForResult(intent, requestCode) }