sjhoeksma / cordova-plugin-keychain-touch-id

Touch ID plugin with saving password in keychain for IOS and android
87 stars 160 forks source link

Attempt to invoke virtual method 'boolean android.hardware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference #67

Open vneethareddy opened 4 years ago

vneethareddy commented 4 years ago

Bug report Description What did you do? I'm installing the app on a samsung j7 non-biometric device

What did happen? When i am calling isAvailable the device is not having biometrics so it should return appropriate error but instead of this i am getting below error. Error: Uncaught (in promise): Attempt to invoke virtual method 'boolean android.hardware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference in the console. This issue happens just on that phone from all my testing devices, but note that's the only device.

Environment I'm using Ionic 3, cordova-plugin-keychain-touch-id

Building in debug mode.

Notes If you have any additional question about the issue please ask and I'll try to give as much data as I can.

p3v9d5ui commented 4 years ago

I am getting this error as well. The device is a Samsung J3