This is an automated email from the ASF dual-hosted git repository.
ramyav pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/olingo-odata4.git
The following commit(s) were added to refs/heads/master by this push:
new 26cbaad [OLINGO-1226]Error in MetadataJsonSerializer when there is
collection of Records
26cbaad is described below
commit 26cbaad6dc67f5eabf823e76117f8624cfd8b8cc
Author: ramya vasanth <[email protected]>
AuthorDate: Thu Aug 27 13:48:37 2020 +0530
[OLINGO-1226]Error in MetadataJsonSerializer when there is collection of
Records
---
.../server/core/serializer/json/MetadataDocumentJsonSerializer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/MetadataDocumentJsonSerializer.java
b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/MetadataDocumentJsonSerializer.java
index f356540..30efdf9 100644
---
a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/MetadataDocumentJsonSerializer.java
+++
b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/json/MetadataDocumentJsonSerializer.java
@@ -851,7 +851,9 @@ public class MetadataDocumentJsonSerializer {
private void appendDynamicExpression(JsonGenerator json,
EdmDynamicExpression dynExp, String termName) throws
SerializerException, IOException {
- json.writeFieldName(termName);
+ if (termName != null) {
+ json.writeFieldName(termName);
+ }
switch (dynExp.getExpressionType()) {
// Logical
case And: