Skip to content

Commit

Permalink
Fix NPE in testShouldMinimizeRoundtrips
Browse files Browse the repository at this point in the history
Relates #62080
  • Loading branch information
dnhatn committed Sep 8, 2020
1 parent 2288b72 commit 8d3b239
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,9 @@ public void testShouldMinimizeRoundtrips() throws Exception {
searchRequestTests.setUp();
SearchRequest searchRequest = searchRequestTests.createSearchRequest();
searchRequest.scroll((Scroll)null);
searchRequest.source().pointInTimeBuilder(null);
if (searchRequest.source() != null) {
searchRequest.source().pointInTimeBuilder(null);
}
searchRequest.searchType(SearchType.QUERY_THEN_FETCH);
SearchSourceBuilder source = searchRequest.source();
if (source != null) {
Expand Down

0 comments on commit 8d3b239

Please sign in to comment.