Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST Get Field Mapping API: Fix NPE if field not existent
When fixing #4738, a small issue leaked into the implementation. The equals check in the RestAction only applied when the master node returned the rest request, otherwise the object equality would not hold due to being transferred over the wire and being deserialized into another object (from and an equality point of view) than the FieldMappingMetaData.NULL object - this could result in serialization exceptions as an empty length bytes reference is used in toXContent.
- Loading branch information