elasticsearch/elasticsearch — pull request #4953 by spinscale (2014-01-30 10:06:00+00:00)
Title: 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.

This is not covered by our tests due to running all nodes in one JVM.