auth0 / Auth0.Android

Android toolkit for Auth0 API
https://auth0.com
MIT License
216 stars 133 forks source link

NPE in AuthenticationActivity.kt:72 #749

Open asif1189 opened 3 months ago

asif1189 commented 3 months ago

Checklist

Description

Hi, We are using com.auth0.android:auth0:2.10.1 version of library & we are getting Null Pointer Exceptions in AuthenticationActivity. Below are the Crashlytics logs that we are getting.

com.auth0.android.provider.AuthenticationActivity.launchAuthenticationIntent (AuthenticationActivity.kt:72)
com.auth0.android.provider.AuthenticationActivity.onResume (AuthenticationActivity.kt:50)
android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1412)
android.app.Activity.performResume (Activity.java:7300)
android.app.ActivityThread.performResumeActivity (ActivityThread.java:3814)
android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3854)
android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:51)
android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:145)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:70)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1816)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:193)
android.app.ActivityThread.main (ActivityThread.java:6718)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)

Looks like this issue is related to this issue #137

Reproduction

We are not able to reproduce this issue on our end but we are getting Crashlytics logs on a daily basis.

Screenshot 2024-07-05 at 5 44 33 PM

Additional context

No response

Auth0.Android version

2.10.1

Android version(s)

Android 9 (88%)

desusai7 commented 3 months ago

Hi @asif1189,

We will look into this and get back to you.

asif1189 commented 2 months ago

Hi @desusai7,

Any updates on this issue ?

asif1189 commented 2 months ago

Hey @desusai7,

Did you get a chance to look into this issue ? It's still impacting a lot of users & it's the Top Crash in our crashlytics dashboard.