Skip to content

Commit 3e504b9

Browse files
committed
avoid an unnecessary judgement
1 parent 585ab6d commit 3e504b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/reflection/MetaObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void setValue(String name, Object value) {
128128
if (prop.hasNext()) {
129129
MetaObject metaValue = metaObjectForProperty(prop.getIndexedName());
130130
if (metaValue == SystemMetaObject.NULL_META_OBJECT) {
131-
if (value == null && prop.getChildren() != null) {
131+
if (value == null) {
132132
// don't instantiate child path if value is null
133133
return;
134134
} else {

0 commit comments

Comments
 (0)