Internal: Ensure that explanation descriptions are not null on serialization.
As requested on #10399
This commit is contained in:
parent
f4d5914511
commit
ca03e40605
|
@ -559,6 +559,9 @@ public class Lucene {
|
|||
out.writeBoolean(false);
|
||||
}
|
||||
out.writeFloat(explanation.getValue());
|
||||
if (explanation.getDescription() == null) {
|
||||
throw new ElasticsearchIllegalArgumentException("Explanation descriptions should NOT be null\n[" + explanation.toString() + "]");
|
||||
}
|
||||
out.writeString(explanation.getDescription());
|
||||
Explanation[] subExplanations = explanation.getDetails();
|
||||
if (subExplanations == null) {
|
||||
|
|
Loading…
Reference in New Issue