[hibernate-commits] Hibernate SVN: r11521 - trunk/HibernateExt/search/src/java/org/hibernate/search/bridge/builtin.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Mon May 14 12:07:48 EDT 2007
Author: epbernard
Date: 2007-05-14 12:07:48 -0400 (Mon, 14 May 2007)
New Revision: 11521
Modified:
trunk/HibernateExt/search/src/java/org/hibernate/search/bridge/builtin/BooleanBridge.java
Log:
HSEARCH-50 BooleanBridge should return null and not NPE on null objects
Modified: trunk/HibernateExt/search/src/java/org/hibernate/search/bridge/builtin/BooleanBridge.java
===================================================================
--- trunk/HibernateExt/search/src/java/org/hibernate/search/bridge/builtin/BooleanBridge.java 2007-05-14 05:59:55 UTC (rev 11520)
+++ trunk/HibernateExt/search/src/java/org/hibernate/search/bridge/builtin/BooleanBridge.java 2007-05-14 16:07:48 UTC (rev 11521)
@@ -16,8 +16,9 @@
}
public String objectToString(Object object) {
- Boolean b = (Boolean) object;
- return b.toString();
+ return object == null ?
+ null :
+ ( (Boolean) object ).toString();
}
}
More information about the hibernate-commits
mailing list