ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbe...@apache.org
Subject svn commit: r677169 - /ibatis/trunk/java/mapper/mapper2/src/com/ibatis/sqlmap/engine/type/TypeHandlerFactory.java
Date Wed, 16 Jul 2008 06:36:30 GMT
Author: cbegin
Date: Tue Jul 15 23:36:30 2008
New Revision: 677169

URL: http://svn.apache.org/viewvc?rev=677169&view=rev
Log:
iBATIS 522 continued...

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=677169&r1=677168&r2=677169&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 23:36:30 2008
@@ -164,7 +164,7 @@
    * @return - true if there is a TypeHandler
    */
   public boolean hasTypeHandler(Class type) {
-    return getTypeHandler(type) != null || Enum.class.isAssignableFrom(type);
+    return type != null && (getTypeHandler(type) != null || Enum.class.isAssignableFrom(type));
   }
 
   /**



Mime
View raw message