question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

See original GitHub issue

Thanks for your great work. I’m using your lib for a while and run some tests but currently getting the following error when trying to init RxFingerprint.decrypt()

java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference at android.os.Parcel.readException(Parcel.java:1626) at android.os.Parcel.readException(Parcel.java:1573) at android.hardware.fingerprint.IFingerprintService$Stub$Proxy.authenticate(IFingerprintService.java:300) at android.hardware.fingerprint.FingerprintManager.authenticate(FingerprintManager.java:601) at android.hardware.fingerprint.FingerprintManager.authenticate(FingerprintManager.java:574) at android.hardware.fingerprint.FingerprintManager.authenticate(FingerprintManager.java:552) at com.mtramin.rxfingerprint.FingerprintObservable.subscribe(FingerprintObservable.java:81) at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40) at io.reactivex.Observable.subscribe(Observable.java:10179) at io.reactivex.Observable.subscribe(Observable.java:10165) at io.reactivex.Observable.subscribe(Observable.java:10096) at gui.Login.initFingerprints(Login.java:179) at gui.Login.onResume(Login.java:1179) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1287) at android.app.Activity.performResume(Activity.java:7015) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4210) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4323) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1865) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7325) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Source

Disposable disposable = RxFingerprint.decrypt(this, "k", AppSettings.getFingerprintHash(getAppContext())). subscribe(fingerprintDecryptionResult -> { //line 179 if(fingerprintDecryptionResult != null){ switch(fingerprintDecryptionResult.getResult()){ case FAILED: setStatusText("Fingerprint not recognized, try again!"); break; case HELP: setStatusText(fingerprintDecryptionResult.getMessage()); break; case AUTHENTICATED: setStatusText("decrypted:\n" + fingerprintDecryptionResult.getDecrypted()); break; } } }, throwable -> { //noinspection StatementWithEmptyBody if(RxFingerprint.keyInvalidated(throwable)){ // The keys you wanted to use are invalidated because the user has turned off his // secure lock screen or changed the fingerprints stored on the device // You have to re-encrypt the data to access it } Log.e("ERROR", "decrypt", throwable); });

Any idea where it comes from?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hvgecommented, Aug 21, 2019

Hi guys, I discovered this ticket while was working on a similar problem. Check out my last comment in wultra/powerauth-mobile-sdk#202, if this is still an issue, of course 😃

0reactions
Farasycommented, Sep 26, 2018

@Farasy How did you reproduce this issue? Actually, I got crash logs, but unable to reproduce this issue.

Missed your question, sorry… but i guess i can’t help you. I did some tests with a service that ended in above message. However, don’t know what i did exactly (anymore ) oO

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attempt to invoke interface method 'int java.util.List.size()' on a ...
The List object which you passed into the adapter is null. So when the adapter calls list.Size(), a null pointer exception is thrown....
Read more >
NullPointerException Attempt to invoke interface method 'int ...
NullPointerException Attempt to invoke interface method 'int java.util.List.size()' on a null object reference #2140.
Read more >
Attempt to invoke interface method 'int java.util.list.size()' on a ...
The forms which have been saved as draft, when I click on any of the form to edit and further submission to server...
Read more >
Error occurring when trying to return list size in adapter class ...
getItemCount() it throws the error, because the reference is null. You must initialise the list before you create the adapter.
Read more >
attempt to invoke interface method 'int java.util.list.size()' on a ...
util.list.size()' on a null object reference - Support - ODK Forum ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found