You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
The cause of this exception is that on many devices the FingerprintManager is not accessible (the reference is null) and to access it you need a vendors SDK installed with its own libraries set.
The quick solution here is to add a null check inside FingerprintUiHelper.isFingerprintAuthAvailable() (line number 222) method on the FingerprintManager class right before calling any method on it.
I am getting null pointer exception on Xiomi Mobile particularly.
I am using Lollipin for 6 months.
This has recently occurred in Xiomi phone. Though it works on other phones.
I would like to know if any possible solution for this.
I am posting detail of error and Device details :
Fatal Exception: java.lang.RuntimeException
Unable to resume activity {.CustomPinActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.hardware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference
Android : 8.1.0 and Mobile : Xiomi Redmi 6A .
The text was updated successfully, but these errors were encountered: