Skip to content

Commit

Permalink
fix(auth,android): fix exception syntax breaks in lower jdk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcpoiu committed Jun 25, 2024
1 parent 6790f37 commit 35015af
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,8 @@ private void linkWithCredential(
promiseWithAuthResult(task.getResult(), promise);
} else {
Exception exception = task.getException();
if (exception instanceof FirebaseAuthUserCollisionException collEx) {
if (exception instanceof FirebaseAuthUserCollisionException) {
FirebaseAuthUserCollisionException collEx = (FirebaseAuthUserCollisionException) exception;
AuthCredential updatedCredential = collEx.getUpdatedCredential();
Log.d(TAG, "link:onComplete:collisionFailure", collEx);
// If we have a credential in the error, we can return it, otherwise fall
Expand Down

0 comments on commit 35015af

Please sign in to comment.