Exception filter for log4j: possible NPE issue was fixed.

This commit is contained in:
Dmitry Kozlov 2012-11-17 11:01:44 +00:00
parent e0029aebdd
commit d47d763937

View File

@ -113,6 +113,9 @@ public class ExceptionFilter extends Filter implements UnrecognizedElementHandle
}
private int checkThrowable(Throwable exception) {
if (exception == null) {
return NEUTRAL;
}
String message = exception.getMessage();
String className = exception.getClass().getName();
for (Pattern pattern : excluded.get(GLOBAL)) {