mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
fix wrong closing of possible null mappings in geo point mapping
This commit is contained in:
parent
d517c3dfef
commit
6ed2624772
@ -340,8 +340,18 @@ public class GeoPointFieldMapper implements XContentMapper, ArrayValueMapperPars
|
||||
}
|
||||
|
||||
@Override public void close() {
|
||||
latMapper.close();
|
||||
lonMapper.close();
|
||||
if (latMapper != null) {
|
||||
latMapper.close();
|
||||
}
|
||||
if (lonMapper != null) {
|
||||
lonMapper.close();
|
||||
}
|
||||
if (geohashMapper != null) {
|
||||
geohashMapper.close();
|
||||
}
|
||||
if (geoStringMapper != null) {
|
||||
geoStringMapper.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void merge(XContentMapper mergeWith, MergeContext mergeContext) throws MergeMappingException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user