Skip to content

Commit ee68441

Browse files
committed
SQLiteRemoteDocumentCache.java: fix size of bindVars in the case that the length of the given collections is greater than zero.
1 parent dcc0332 commit ee68441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private Map<DocumentKey, MutableDocument> getAll(
232232

233233
Object[] bindVars =
234234
new Object
235-
[BINDS_PER_STATEMENT * collections.size() + 1 + (filterDocumentType != null ? 1 : 0)];
235+
[(BINDS_PER_STATEMENT + (filterDocumentType != null ? 1 : 0)) * collections.size() + 1];
236236
int i = 0;
237237
for (ResourcePath collection : collections) {
238238
String prefixPath = EncodedPath.encode(collection);

0 commit comments

Comments
 (0)