Skip to content

Commit 3d88f62

Browse files
authored
Replace Collection.emptyMap() with new HashMap() (#5573)
1 parent ac19e5d commit 3d88f62

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

firebase-firestore/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Unreleased
2+
* [fixed] Fixed an issue caused by calling mutation on immutable map object. [#5573](//github.com/firebase/firebase-android-sdk/pull/5573)
3+
24
* [fixed] Fixed an issue in the local cache synchronization logic where all locally-cached documents that matched a resumed query would be unnecessarily re-downloaded; with the fix it now only downloads the documents that are known to be out-of-sync. [#5506](//github.com/firebase/firebase-android-sdk/pull/5506)
35
* [fixed] Fixed an issue where GC runs into a infinite loop in a certain case. [#5417](https://github.com/firebase/firebase-android-sdk/issues/5417)
46

firebase-firestore/src/main/java/com/google/firebase/firestore/local/LocalDocumentsView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ LocalDocumentsResult getNextDocuments(String collectionGroup, IndexOffset offset
340340
count - docs.size() > 0
341341
? documentOverlayCache.getOverlays(
342342
collectionGroup, offset.getLargestBatchId(), count - docs.size())
343-
: Collections.emptyMap();
343+
: new HashMap<>();
344344

345345
int largestBatchId = FieldIndex.INITIAL_LARGEST_BATCH_ID;
346346
for (Overlay overlay : overlays.values()) {

0 commit comments

Comments
 (0)