mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-05-31 09:12:11 +00:00
DATAES - 865 - Fix MappingElasticsearchConverter writing an Object property containing a Map.
Original PR: #482
This commit is contained in:
parent
b177dd1681
commit
1de1aeb2c7
@ -596,7 +596,7 @@ public class MappingElasticsearchConverter
|
||||
Map<Object, Object> target = new LinkedHashMap<>();
|
||||
Streamable<Entry<String, Object>> mapSource = Streamable.of(value.entrySet());
|
||||
|
||||
if (!typeHint.getActualType().getType().equals(Object.class)
|
||||
if (typeHint.getActualType() != null && !typeHint.getActualType().getType().equals(Object.class)
|
||||
&& isSimpleType(typeHint.getMapValueType().getType())) {
|
||||
mapSource.forEach(it -> {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user