This repository has been archived by the owner on Jul 2, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for nullability of
instance
to avoid NPEs (#111)
* We have found some apps crashed due to a NPE in Dexter. The problem can be reproduced by following these steps: * Accept one permission * Request other permission and while the native dialog is on screen go to the settings page for your app * Manually change the previous accepted permission to denied * Open the application again and BOOM! This happens because Android will partially restart the app when changing permissions from the settings. DexterActivity will try to notify dexter of the changes and will find that the static instance has been cleaned up. * The easiest solution for now is to just ignore events from the activity if the instance is null.
- Loading branch information