Skip to content
Open
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 @@ -198,7 +198,13 @@ public boolean isBytes() {

@Override
public boolean isArray() {
return true;
// A single EntityData.Value message doubles as a scalar, an array (repeated scalar/nested-value
// fields) and a value map (name-value pairs), so unlike the Gson-backed PersistedData this can't
// just check "is this element shaped like a JSON array". Every other kind (including scalars,
// which callers already treat as size-1 arrays via getAsArray()/getArrayItem()) genuinely can be
// read as an array; only a real value map can't - mirror isValueMap()'s own check instead of
// reporting true unconditionally. See #5069.
return data.getNameValueCount() == 0;
}

@Override
Expand Down
Loading