diff --git a/src/main/java/aiyh/utils/recordset/ResultMapper.java b/src/main/java/aiyh/utils/recordset/ResultMapper.java index 1f1389d..c25e24e 100644 --- a/src/main/java/aiyh/utils/recordset/ResultMapper.java +++ b/src/main/java/aiyh/utils/recordset/ResultMapper.java @@ -586,7 +586,7 @@ public class ResultMapper { if (collectionMapping != null) { Object collection = collection(rs, collectionMapping, method); try { - if (Objects.nonNull(value)) { + if (Objects.nonNull(collection)) { propertyDescriptor.getWriteMethod().invoke(o, collection); } } catch (Exception e) {