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
Copy file name to clipboardexpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java
+19
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,9 @@ public Flux<T> findAllById(Publisher<ID> ids) {
180
180
*/
181
181
@Override
182
182
publicFlux<T> findAll(Sortsort) {
183
+
184
+
Assert.notNull(sort, "Sort must not be null!");
185
+
183
186
returnfindAll(newQuery().with(sort));
184
187
}
185
188
@@ -204,6 +207,9 @@ public <S extends T> Flux<S> findAll(Example<S> example, Sort sort) {
204
207
*/
205
208
@Override
206
209
public <SextendsT> Flux<S> findAll(Example<S> example) {
210
+
211
+
Assert.notNull(example, "Example must not be null!");
212
+
207
213
returnfindAll(example, Sort.unsorted());
208
214
}
209
215
@@ -327,6 +333,19 @@ public Mono<Void> deleteById(ID id) {
Copy file name to clipboardexpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/SimpleReactiveMongoRepositoryTests.java
+19-2
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ public void existsByMonoOfIdShouldReturnTrueForExistingObject() {
0 commit comments