Skip to content

Commit

Permalink
fix(firestore): add null check on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Feb 14, 2024
1 parent 703df6b commit 1105fcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-parrots-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@capacitor-firebase/firestore': patch
---

fix(android): add `null` check
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ public void getCollection(@NonNull GetCollectionOptions options, @NonNull NonEmp
Query query = this.firestoreInstance.collection(reference);
if (compositeFilter != null) {
Filter filter = compositeFilter.toFilter();
query = query.where(filter);
if (filter != null) {
query = query.where(filter);
}
}
if (queryConstraints.length > 0) {
for (QueryNonFilterConstraint queryConstraint : queryConstraints) {
Expand Down

0 comments on commit 1105fcd

Please sign in to comment.