since you’re already okay with a null check, you c...
# android
a
since you’re already okay with a null check, you can do something like
Copy code
val fragment = (fragmentManager.findFragmentByTag("third") as? ThirdStepPayServiceFragment)
Then you can check if it’s null and handle it accordingly