Auth0.Android icon indicating copy to clipboard operation
Auth0.Android copied to clipboard

NPE in AuthenticationActivity.kt:72

Open asif1189 opened this issue 1 year ago • 3 comments

Checklist

  • [X] The issue can be reproduced in the Auth0.Android sample app (or N/A).
  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

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%)

asif1189 avatar Jul 05 '24 12:07 asif1189

Hi @asif1189,

We will look into this and get back to you.

desusai7 avatar Jul 08 '24 05:07 desusai7

Hi @desusai7,

Any updates on this issue ?

asif1189 avatar Jul 12 '24 08:07 asif1189

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.

asif1189 avatar Jul 31 '24 10:07 asif1189

Closing this as it is handled in https://github.com/auth0/Auth0.Android/pull/759

pmathew92 avatar Dec 11 '24 08:12 pmathew92