This PR fixes a common crash in woocommerce/woocommerce-android#7381. It adds a null check, so that when a Runnable is executed after the view is destroyed, the app doesn't crash.
I wasn't able to replicate the crash so I don't have any testing instructions but there is no valid app state where the view could be null so this fix should do it.
This PR fixes a common crash in woocommerce/woocommerce-android#7381. It adds a null check, so that when a
Runnable
is executed after the view is destroyed, the app doesn't crash.I wasn't able to replicate the crash so I don't have any testing instructions but there is no valid app state where the view could be
null
so this fix should do it.