You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will see NPE during System.out.println((new IntervalQueryBuilder("test", is)).toString());
Provide logs (if relevant):
exception java.lang.NullPointerException
at org.elasticsearch.index.query.IntervalsSourceProvider$IntervalFilter.toXContent(IntervalsSourceProvider.java:777)
at org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:857)
at org.elasticsearch.common.xcontent.XContentBuilder.value(XContentBuilder.java:850)
at org.elasticsearch.common.xcontent.XContentBuilder.field(XContentBuilder.java:842)
at org.elasticsearch.index.query.IntervalsSourceProvider$Combine.toXContent(IntervalsSourceProvider.java:422)
at org.elasticsearch.index.query.IntervalQueryBuilder.doXContent(IntervalQueryBuilder.java:69)
at org.elasticsearch.index.query.AbstractQueryBuilder.toXContent(AbstractQueryBuilder.java:83)
at org.elasticsearch.common.Strings.toString(Strings.java:778)
at org.elasticsearch.index.query.AbstractQueryBuilder.toString(AbstractQueryBuilder.java:363)
The text was updated successfully, but these errors were encountered:
Elasticsearch version (
bin/elasticsearch --version
): Version: 7.3.2, Build: oss/tar/1c1faf1/2019-09-06T14:40:30.409026Z, JVM: 1.8.0_162Plugins installed: All defaults i.e [aggs-matrix-stats, analysis-common, ingest-common, ingest-geoip, ingest-user-agent, lang-expression, lang-mustache, lang-painless, mapper-extras, parent-join, percolator, rank-eval, reindex, repository-url, transport-netty4, advanced-scripts-plugin, analysis-kuromoji, analysis-smartcn]
JVM version (
java -version
): 1.8.0_162OS version (
uname -a
if on a Unix-like system): Ubuntu 18.04Description of the problem including expected versus actual behavior:
A NullPointerException is thrown when toString() method is called on an instance of IntervalQueryBuilder.
Steps to reproduce:
Create the following query using the Java code as follows:
Use the java code as follows:
You will see NPE during
System.out.println((new IntervalQueryBuilder("test", is)).toString());
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: