Author: norman.richards(a)jboss.com
Date: 2009-01-20 14:14:02 -0500 (Tue, 20 Jan 2009)
New Revision: 9959
Modified:
trunk/src/main/org/jboss/seam/exception/Exceptions.java
Log:
JBSEAM-3845
Modified: trunk/src/main/org/jboss/seam/exception/Exceptions.java
===================================================================
--- trunk/src/main/org/jboss/seam/exception/Exceptions.java 2009-01-20 17:46:51 UTC (rev
9958)
+++ trunk/src/main/org/jboss/seam/exception/Exceptions.java 2009-01-20 19:14:02 UTC (rev
9959)
@@ -198,8 +198,11 @@
try {
handler = createHandler(exception,
Reflections.classForName(className));
- handler.setLogEnabled(logEnabled);
- handler.setLogLevel(logLevel);
+
+ if (handler != null) {
+ handler.setLogEnabled(logEnabled);
+ handler.setLogLevel(logLevel);
+ }
} catch (ClassNotFoundException e) {
log.error("Can't find exception class for exception
handler", e);
}
Show replies by date