Skip to content

Commit fb23799

Browse files
SUPERCILEXsamtstern
authored andcommitted
Catch setFirebaseUIVersion crashes (#1236)
1 parent 2609e02 commit fb23799

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ private AuthUI(FirebaseApp app) {
210210
mApp = app;
211211
mAuth = FirebaseAuth.getInstance(mApp);
212212

213-
mAuth.setFirebaseUIVersion(BuildConfig.VERSION_NAME);
213+
try {
214+
mAuth.setFirebaseUIVersion(BuildConfig.VERSION_NAME);
215+
} catch (Exception e) {
216+
Log.e(TAG, "Couldn't set the FUI version.", e);
217+
}
214218
mAuth.useAppLanguage();
215219
}
216220

0 commit comments

Comments
 (0)