Author: cbegin Date: Tue Jul 15 11:07:39 2008 New Revision: 676994 URL: http://svn.apache.org/viewvc?rev=676994&view=rev Log: iBATIS 522 - fixed NPE on null property type
Modified: ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java Modified: ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java?rev=676994&r1=676993&r2=676994&view=diff ============================================================================== --- ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java (original) +++ ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java Tue Jul 15 11:07:39 2008 @@ -140,7 +140,7 @@ handler = (TypeHandler) jdbcHandlerMap.get(null); } } - if (handler == null && Enum.class.isAssignableFrom(type)) { + if (handler == null && type != null && Enum.class.isAssignableFrom(type)) { handler = new EnumTypeHandler(type); } return handler;