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

NullPointerException in WebAuthProvider #720

Open
6 tasks done
LouisPennachio opened this issue Mar 15, 2024 · 0 comments
Open
6 tasks done

NullPointerException in WebAuthProvider #720

LouisPennachio opened this issue Mar 15, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@LouisPennachio
Copy link

Checklist

Description

I notice the Android Auth0 SDK sometimes throws this exception :

Fatal Exception: java.lang.NullPointerException:
       at com.auth0.android.provider.WebAuthProvider.failure$auth0_release(WebAuthProvider.java:149)
       at com.auth0.android.provider.AuthenticationActivity.deliverAuthenticationFailure$auth0_release(AuthenticationActivity.java:149)
       at com.auth0.android.provider.AuthenticationActivity$launchAuthenticationIntent$1.apply(AuthenticationActivity.java:149)
       at com.auth0.android.provider.AuthenticationActivity$launchAuthenticationIntent$1.apply(AuthenticationActivity.java:149)
       at com.auth0.android.provider.CustomTabsController.lambda$null$0(CustomTabsController.java:149)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6944)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

It originates from here :

WebAuthProvider.login(auth0)
    .withAudience(...)
    .withNonce(...)
    .withParameters(...)
    .withRedirectUri(...)
    .withScope(...)
    .await(context)

Impacted Android devices: Samsung, Oppo, Transsion, Vivo, Huawei
Application state: 100% foreground
Occurence: 26 times over the last 90 days

Any hint on what could cause this ?

Thanks

Reproduction

Reproduction steps are unknown. I've tried with my own app as well as the Auth0 sample app. The crashes happen only for end-users in production.

Additional context

No response

Auth0.Android version

2.10.2

Android version(s)

9, 10, 11, 12, 13

@LouisPennachio LouisPennachio added the bug This points to a verified bug in the code label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant