Fix dynamic mapper bug with deeply nested fields.

This commit is contained in:
Adrien Grand 2016-03-11 09:55:21 +01:00
parent 94aa025b93
commit a46d2f21c6
1 changed files with 2 additions and 1 deletions

View File

@ -316,7 +316,8 @@ final class DocumentParser implements Closeable {
while (i < nameParts.length - 1 && last.getMapper(nameParts[i]) != null) {
Mapper newLast = last.getMapper(nameParts[i]);
assert newLast instanceof ObjectMapper;
parentMappers.add((ObjectMapper)newLast);
last = (ObjectMapper) newLast;
parentMappers.add(last);
++i;
}
return i;