Skip to content

Commit bb4f8f2

Browse files
committed
Fix NPE in AggregatesSearchIntegrationTest
The NPE was introduced by the previous commit 091b41d
1 parent 091b41d commit bb4f8f2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

driver-core/src/test/functional/com/mongodb/client/model/search/AggregatesSearchIntegrationTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import com.mongodb.client.model.geojson.Point;
2323
import com.mongodb.client.model.geojson.Position;
2424
import com.mongodb.client.test.CollectionHelper;
25-
import com.mongodb.lang.Nullable;
2625
import org.bson.BsonDocument;
2726
import org.bson.codecs.BsonDocumentCodec;
2827
import org.bson.conversions.Bson;
@@ -274,7 +273,7 @@ private static Stream<Arguments> args() {
274273
"default options",
275274
stageCreator(
276275
exists(fieldPath("tomatoes.dvd")),
277-
null
276+
searchOptions()
278277
),
279278
MFLIX_MOVIES_NS,
280279
asList(
@@ -460,7 +459,7 @@ private static Stream<Arguments> args() {
460459
relevanceExpression()))),
461460
gaussExpression(0, pathExpression(fieldPath("gaussianFieldName")), 1)))))
462461
)),
463-
null
462+
searchOptions()
464463
),
465464
MFLIX_MOVIES_NS,
466465
asList(
@@ -503,7 +502,7 @@ private static Stream<Arguments> args() {
503502
.minimumShouldMatch(1)
504503
.mustNot(singleton(
505504
compound().must(singleton(exists(fieldPath("fieldName")))))),
506-
null
505+
searchOptions()
507506
),
508507
MFLIX_MOVIES_NS,
509508
asList(
@@ -526,7 +525,7 @@ private static Stream<Arguments> args() {
526525
1234.5,
527526
fieldPath("address.location"))
528527
)),
529-
null
528+
searchOptions()
530529
),
531530
AIRBNB_LISTINGS_AND_REVIEWS_NS,
532531
asList(
@@ -610,7 +609,7 @@ private static Asserter decorate(final Asserter asserter) {
610609
}
611610
}
612611

613-
private static CustomizableSearchStageCreator stageCreator(final Bson operatorOrCollector, @Nullable final SearchOptions options) {
612+
private static CustomizableSearchStageCreator stageCreator(final Bson operatorOrCollector, final SearchOptions options) {
614613
return customizer -> customizer.apply(operatorOrCollector, options);
615614
}
616615

0 commit comments

Comments
 (0)