metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

Biometric login fails with Unknown error: Attempt to invoke virtual method 'java.security.PublicKey java.security.cert.Certificate.getPublicKey()' on a null object reference

Open AlexHerman1 opened this issue 3 years ago • 4 comments

Describe the bug MM Mobile biometric login fails and displays the above error

Screenshots image (1)

To Reproduce I do not have an android device to try to repro on. There is a sentry report for this issue.

Expected behavior Be able to login.

Smartphone (please complete the following information):

  • Device: Huawei Nova 7 i
  • OS: Android (not sure of version)
  • App Version: 5.4.0

AlexHerman1 avatar Aug 16 '22 19:08 AlexHerman1

@AlexHerman1 Thanks! Do we have this error appearing to different users or different devices?

tommasini avatar Aug 22 '22 15:08 tommasini

@tommasini we have 8 total tickets on this, seems to appear in a variety of different scenarios. multiple people reported from log in screen, two seem to have it upon trying to use biometrics. i am sure they are not all on same device, it looks like mainly an android issue.

AlexHerman1 avatar Aug 22 '22 16:08 AlexHerman1

relates to https://github.com/MetaMask/metamask-mobile/issues/4840

cortisiko avatar Sep 08 '22 18:09 cortisiko

I ran into this issue on an app that I'm creating. For me the issue was due to the fact that I set the storage type to Keychain.STORAGE_TYPE.AES and saved password using Keychain.setGenericPassword(...), then later in the application it changes the storage type to Keychain.STORAGE_TYPE.RSA and calls the same setGenericPassword method but with the storage type being RSA instead of AES. To fix this you need to call Keychain.resetGenericPassword(...) before you call Keychain.setGenericPassword(...) the second time

wadeking98 avatar Sep 15 '22 21:09 wadeking98

I've encountered this same error while clicking on Import a token. After dismissing the error I could see how the Import a token link was then greyed out (not clickable) and no other function responded / MM stayed frozen.

I solved this by re-starting the app (closing and opening again).

Screenshot from 2023-05-04 12-40-16

seaona avatar May 04 '23 10:05 seaona

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.

github-actions[bot] avatar Aug 02 '23 11:08 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.

github-actions[bot] avatar Aug 09 '23 12:08 github-actions[bot]