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…
Reference in New Issue