Skip to content

Commit 033be14

Browse files
authored
Merge pull request #2284 from zakkak/fix-null-meta-object
forObject is expecting an Object not its Class
2 parents 193e6fa + 9466ddf commit 033be14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class SystemMetaObject {
2727

2828
public static final ObjectFactory DEFAULT_OBJECT_FACTORY = new DefaultObjectFactory();
2929
public static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY = new DefaultObjectWrapperFactory();
30-
public static final MetaObject NULL_META_OBJECT = MetaObject.forObject(NullObject.class, DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, new DefaultReflectorFactory());
30+
public static final MetaObject NULL_META_OBJECT = MetaObject.forObject(new NullObject(), DEFAULT_OBJECT_FACTORY, DEFAULT_OBJECT_WRAPPER_FACTORY, new DefaultReflectorFactory());
3131

3232
private SystemMetaObject() {
3333
// Prevent Instantiation of Static Class

0 commit comments

Comments
 (0)