We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4e207 commit 5c153dcCopy full SHA for 5c153dc
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AggregationUtils.java
@@ -33,6 +33,7 @@
33
import org.springframework.expression.ExpressionParser;
34
import org.springframework.lang.Nullable;
35
import org.springframework.util.ClassUtils;
36
+import org.springframework.util.ObjectUtils;
37
import org.springframework.util.StringUtils;
38
39
/**
@@ -165,7 +166,7 @@ static void appendLimitAndOffsetIfPresent(List<AggregationOperation> aggregation
165
166
@Nullable
167
static <T> T extractSimpleTypeResult(@Nullable Document source, Class<T> targetType, MongoConverter converter) {
168
- if (source == null || source.isEmpty()) {
169
+ if (ObjectUtils.isEmpty(source)) {
170
return null;
171
}
172
0 commit comments