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

Increase in Android Crashes with latest version of the plugin #487

Open
scotthmusson opened this issue Nov 26, 2024 · 0 comments
Open

Increase in Android Crashes with latest version of the plugin #487

scotthmusson opened this issue Nov 26, 2024 · 0 comments
Labels

Comments

@scotthmusson
Copy link

Bug report

Description

Using the latest plugin version, I have an increase in crashes with Android devices. I've had 68 events in the last 28 days.
de.niklasmerz.cordova.biometric.Fingerprint.lambda$sendError$1$de-niklasmerz-cordova-biometric-Fingerprint
java.lang.NullPointerException

I am using requireStrongBiometrics with the plugin.
Please let me know if there's anything else I can provide to help with this matter.

This has always been an excellent plugin and I've not have any issues prior to this version.

Thanks for your continued efforts with this plugin

Environment

  • Plugin version 6.0.0
  • Build environment (CLI 11.0.0)
  • cordova platform ls Android 13.0.0
    Open JDK 17.0.2
    Gradle 8.10

Logs

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5378)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5444)
  at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:54)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2574)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8762)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
Caused by java.lang.RuntimeException:
  at android.app.ActivityThread.deliverResults (ActivityThread.java:5994)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5348)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CallbackContext.sendPluginResult(org.apache.cordova.PluginResult)' on a null object reference
  at de.niklasmerz.cordova.biometric.Fingerprint.lambda$sendError$1$de-niklasmerz-cordova-biometric-Fingerprint (Fingerprint.java:168)
  at de.niklasmerz.cordova.biometric.Fingerprint$$ExternalSyntheticLambda2.run (D8$$SyntheticClass)
  at android.app.Activity.runOnUiThread (Activity.java:7494)
  at de.niklasmerz.cordova.biometric.Fingerprint.sendError (Fingerprint.java:167)
  at de.niklasmerz.cordova.biometric.Fingerprint.sendError (Fingerprint.java:138)
  at de.niklasmerz.cordova.biometric.Fingerprint.onActivityResult (Fingerprint.java:121)
  at org.apache.cordova.CordovaInterfaceImpl.onActivityResult (CordovaInterfaceImpl.java:160)
  at org.apache.cordova.CordovaActivity.onActivityResult (CordovaActivity.java:375)
  at android.app.Activity.dispatchActivityResult (Activity.java:8951)
  at android.app.ActivityThread.deliverResults (ActivityThread.java:5987)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant