0

We use androidx.biometric:biometric:1.0.1 in our application, and on some devices we get an error


Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setVisibility(int)' on a null object reference

at androidx.biometric.fingerprintDialogFragment.onCreateDialog(FingerPrintDialogFragment.java:199)

Code on this line is

subtitleView.setVisibility(View.VISIBLE);

How can we solve this problem? We also tried to use alpha release, but problem still available

Rasul
  • 727
  • 7
  • 20
  • I recommend that you [file an issue against the Biometric library](https://issuetracker.google.com/issues?q=componentid:559537), with a sample project that reproduces the crash and the details of what specific device models are triggering the crash. – CommonsWare Sep 07 '20 at 12:00
  • The fingerprint dialog varies a lot depending on the device. Probably the subtitleView is not present on some devices... Try to put an if statement and check if the line of code causing the error is applicable on those devices. – Francesco Re Sep 07 '20 at 13:49

0 Answers0