Firebaseui-android: Recover password : IllegalArgumentException: Given String is empty or null

Created on 14 Feb 2019  路  3Comments  路  Source: firebase/FirebaseUI-Android

Environment

  • Android device: Any
  • Android OS version: Seen on Android 5-8-9 but does not look relevant
  • Google Play Services version: 16.0.1
  • Firebase/Play Services SDK version: 16.0.1
  • FirebaseUI version: 4.2.1

Encountered problem:

We are getting a crash on recover password when users leave an empty email and validate with the soft keyboard's done button.

Steps to reproduce:

  1. Start logging-in with Firebase auth UI
  2. At password step, press "recover password"
  3. Make the email field empty and validate with soft keyboard's done button.

Observed Results:

The app crashes with the following stacktrace :
Fatal Exception: java.lang.IllegalArgumentException: Given String is empty or null at com.google.android.gms.common.internal.Preconditions.checkNotEmpty(Unknown Source:5) at com.google.firebase.auth.FirebaseAuth.sendPasswordResetEmail(Unknown Source:251) at com.firebase.ui.auth.viewmodel.email.RecoverPasswordHandler.startReset(RecoverPasswordHandler.java:20) at com.firebase.ui.auth.ui.email.RecoverPasswordActivity.onDonePressed(RecoverPasswordActivity.java:120) at com.firebase.ui.auth.util.ui.ImeHelper$1.onEditorAction(ImeHelper.java:31) at android.widget.TextView.onEditorAction(TextView.java:5397) at com.android.internal.widget.EditableInputConnection.performEditorAction(EditableInputConnection.java:139) at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:304) at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6934) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Expected Results:

  • The behavior should be the same as when we press the UI's done button.
auth fix-implemented bug

All 3 comments

@Nebneb thanks for reporting this! Seems like a pretty straight-forward bug and I will add it to the next release milestone.

This has been fixed and released in version 4.3.2

Thans a lot! 馃槑

Was this page helpful?
0 / 5 - 0 ratings