Skip to content

Commit

Permalink
Fix issue elastic#51486
Browse files Browse the repository at this point in the history
  • Loading branch information
feifeiiiiiiiiiii authored Feb 1, 2020
1 parent 92be385 commit 41b90b3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ protected boolean processField(RootObjectMapper.Builder builder, String fieldNam
}
]
*/
if (!(fieldNode instanceof List)) {
throw new MapperParsingException("Dynamic template syntax error");
}
List<?> tmplNodes = (List<?>) fieldNode;
List<DynamicTemplate> templates = new ArrayList<>();
for (Object tmplNode : tmplNodes) {
Expand Down

0 comments on commit 41b90b3

Please sign in to comment.