Skip to content

Commit bafc000

Browse files
wu-huithatfiredev
authored andcommitted
Ensure Client exists (#3900)
* Fix 238932261 * Change log
1 parent fec2c6c commit bafc000

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

firebase-firestore/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ by opting into a release at
33
[go/firebase-android-release](http:go/firebase-android-release) (Googlers only).
44

55
# Unreleased
6+
- [fixed] Fixed an issue `waitForPendingWrites()` could lead to NullPointerException.
67

78
# 24.2.0
89
- [feature] Added `TransactionOptions` to control how many times a transaction

firebase-firestore/src/main/java/com/google/firebase/firestore/FirebaseFirestore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ public Task<Void> terminate() {
550550
*/
551551
@NonNull
552552
public Task<Void> waitForPendingWrites() {
553+
ensureClientConfigured();
553554
return client.waitForPendingWrites();
554555
}
555556

0 commit comments

Comments
 (0)