Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ public ObjectValue getData() {
} else {
hardAssert(proto != null && converter != null, "Expected proto and converter to be non-null");

Map<FieldPath, FieldValue> fieldValueCache = this.fieldValueCache;
if (fieldValueCache == null) {
// TODO(b/136090445): Remove the cache when `getField` is no longer called during Query
// ordering.
fieldValueCache = new ConcurrentHashMap<>();
this.fieldValueCache = fieldValueCache;
}

FieldValue fieldValue = fieldValueCache.get(path);
Expand Down