Author: maksimkaszynski
Date: 2008-03-14 14:25:18 -0400 (Fri, 14 Mar 2008)
New Revision: 6833
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java
Log:
Fixed NPE
Modified:
trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java
===================================================================
---
trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java 2008-03-14
18:24:30 UTC (rev 6832)
+++
trunk/framework/test/src/main/java/org/ajax4jsf/tests/EnumSupportExpressionFactoryWrapper.java 2008-03-14
18:25:18 UTC (rev 6833)
@@ -27,7 +27,7 @@
*/
@Override
public Object coerceToType(Object obj, Class<?> targetType) {
- if (targetType.isEnum()) {
+ if (targetType != null && targetType.isEnum()) {
return coerceToEnum(obj, (Class<?>) targetType);
}
return factory.coerceToType(obj, targetType);
Show replies by date