Skip to content

Commit bd5c9a9

Browse files
authored
Merge pull request #359 from SUPERCILEX/patch-1
Prevent IllegalArgumentException in SaveCredentialsActivity
2 parents 446dbfd + 5de33fd commit bd5c9a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/account_link/SaveCredentialsActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ public void onConnected(@Nullable Bundle bundle) {
104104
}
105105
if (translatedProvider != null) {
106106
builder.setAccountType(translatedProvider);
107+
} else {
108+
Log.e(TAG, "Unable to save null credential!");
109+
finish(RESULT_FIRST_USER, getIntent());
110+
return;
107111
}
108112
}
109113
}

0 commit comments

Comments
 (0)