OpenSearch/server/src
Alan Woodward d0da30e5f4 Return NO_INTERVALS rather than null from empty TokenStream (#42750)
IntervalBuilder#analyzeText will currently return null if it is passed an
empty TokenStream, which can lead to a confusing NullPointerException
later on during querying. This commit changes the code to return
NO_INTERVALS instead.

Fixes #42587
2019-05-31 17:45:57 +01:00
..
main Return NO_INTERVALS rather than null from empty TokenStream (#42750) 2019-05-31 17:45:57 +01:00
test Return NO_INTERVALS rather than null from empty TokenStream (#42750) 2019-05-31 17:45:57 +01:00