Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dstefanoska opened this issue Apr 1, 2019 · 6 comments
Labels
Milestone

Comments

@dstefanoska
Copy link

dstefanoska commented Apr 1, 2019

Bug report

Description

  • What did you do?
    I'm installing the app on a TECNO F1 device running Android GO

  • What did happen?
    When the plugin is added in the constructor it's showing 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 that doesn't have a fingerprint sensor which I've tested on.

Environment

I'm using Ionic 3, cordova-plugin-fingerprint-aio: ~1.6.0 and @ionic-native/fingerprint-aio: "^4.20.0 when I got this issue.
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.

@dstefanoska dstefanoska added the bug label Apr 1, 2019
@NiklasMerz
Copy link
Owner

Thank you for reporting. Possibly Android Go behaves diffrently.

@NiklasMerz NiklasMerz added help wanted needsinvastigation Further information needed labels Apr 1, 2019
@spargo-protek
Copy link

The same on Xiaomi 6A
Android 8.1.0 O11019

@spargo-protek
Copy link

Please add a null check as described here:
omadahealth/LolliPin#195

emelnychenko added a commit to emelnychenko/cordova-plugin-fingerprint-aio that referenced this issue Oct 25, 2019
…dware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference

- Added null check at every place where mFingerPrintManager used to prevent "boolean android.hardware.fingerprint.FingerprintManager.isHardwareDetected()' on a null object reference"
@NiklasMerz NiklasMerz added this to the 3.0 milestone Nov 1, 2019
@NiklasMerz
Copy link
Owner

Please test #179

@NiklasMerz
Copy link
Owner

Probably fixed

@richardshergold
Copy link

Hi. Just installed the new version and I'm getting the error BIOMETRIC_HARDWARE_NOT_SUPPORTED even though my device (running Android 9) has FACE ID set up?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants