Skip to content

Commit f9bc4f6

Browse files
committed
Update sessions to handle null fid correctly
1 parent 2888611 commit f9bc4f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-sessions/src/main/kotlin/com/google/firebase/sessions/InstallationId.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal class InstallationId private constructor(val fid: String, val authToken
3737
}
3838
val fid: String =
3939
try {
40-
firebaseInstallations.id.await()
40+
firebaseInstallations.id.await() ?: ""
4141
} catch (ex: Exception) {
4242
Log.w(TAG, "Error getting Firebase installation id .", ex)
4343
""

0 commit comments

Comments
 (0)