play-services-plugins icon indicating copy to clipboard operation
play-services-plugins copied to clipboard

Android - Objects.requireNonNull java.lang.NullPointerException - Unable to start activity ComponentInfo{mypackage/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}

Open atul-vts opened this issue 2 years ago • 2 comments

Describe the bug Hi Team, we've encountered a crash on our Firebase Crashlytics, this is not directly reproducible to us. So we wanted to share it with you so that you can guide us or let us know if it got fixed in any of the upgraded versions.

To Reproduce Steps to reproduce the behavior: Please find the crash log below:

Fatal Exception: java.lang.RuntimeException Unable to start activity ComponentInfo{MYPACKAGE/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}: java.lang.NullPointerException android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3431) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3595) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:85) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) android.app.ActivityThread$H.handleMessage (ActivityThread.java:2066) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:223) android.app.ActivityThread.main (ActivityThread.java:7664) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

Caused by java.lang.NullPointerException java.util.Objects.requireNonNull (Objects.java:220) com.google.android.gms.auth.api.signin.internal.SignInHubActivity.onCreate (com.google.android.gms:play-services-auth@@20.1.0:23) android.app.Activity.performCreate (Activity.java:7994) android.app.Activity.performCreate (Activity.java:7978) android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1309) android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3404) android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3595) android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:85) android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) android.app.ActivityThread$H.handleMessage (ActivityThread.java:2066) android.os.Handler.dispatchMessage (Handler.java:106) android.os.Looper.loop (Looper.java:223) android.app.ActivityThread.main (ActivityThread.java:7664) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947)

Expected behavior The crash shouldn’t occur.

Screenshots It's on Firebase: image

Desktop (please complete the following information):

  • Gradle version: 7.0.4
  • Android Studio version: Android Studio Giraffe | 2022.3.1

atul-vts avatar Aug 14 '23 15:08 atul-vts

Any update on this?

atul-vts avatar Sep 18 '23 14:09 atul-vts

Hi Team,

Can anyone provide an update on this?

atul-vts avatar Nov 17 '23 05:11 atul-vts

Hello, I think this bug may be filed to the wrong repo. If this is a bug on the firebase-auth SDK you should file it here.

Steps to reproduce an issue are very valuable, and without them it may be difficult to resolve this. From a very shallow reading of the stack trace, and missing a lot of context, a debugging step might be to check if the app contains play-services-auth, and if you can replicate by triggering the sign in flow.

davidmotson avatar Apr 10 '24 20:04 davidmotson