File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 39
39
import org .springframework .expression .spel .standard .SpelExpressionParser ;
40
40
import org .springframework .lang .Nullable ;
41
41
import org .springframework .util .ClassUtils ;
42
+ import org .springframework .util .ObjectUtils ;
42
43
import org .springframework .util .StringUtils ;
43
44
44
45
/**
@@ -198,7 +199,7 @@ static void appendLimitAndOffsetIfPresent(List<AggregationOperation> aggregation
198
199
@ Nullable
199
200
static <T > T extractSimpleTypeResult (@ Nullable Document source , Class <T > targetType , MongoConverter converter ) {
200
201
201
- if (source == null || source .isEmpty ()) {
202
+ if (ObjectUtils .isEmpty (source )) {
202
203
return null ;
203
204
}
204
205
You can’t perform that action at this time.
0 commit comments