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 3939import org .springframework .expression .spel .standard .SpelExpressionParser ;
4040import org .springframework .lang .Nullable ;
4141import org .springframework .util .ClassUtils ;
42+ import org .springframework .util .ObjectUtils ;
4243import org .springframework .util .StringUtils ;
4344
4445/**
@@ -198,7 +199,7 @@ static void appendLimitAndOffsetIfPresent(List<AggregationOperation> aggregation
198199 @ Nullable
199200 static <T > T extractSimpleTypeResult (@ Nullable Document source , Class <T > targetType , MongoConverter converter ) {
200201
201- if (source == null || source .isEmpty ()) {
202+ if (ObjectUtils .isEmpty (source )) {
202203 return null ;
203204 }
204205
You can’t perform that action at this time.
0 commit comments