Internal: Ensure that explanation descriptions are not null on serialization.
As requested on #10399
This commit is contained in:
parent
24d1f595a5
commit
b69e7e4d35
|
@ -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