git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1231081 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-01-13 14:10:11 +00:00
parent 0e95460e0a
commit 71e228fe92
1 changed files with 4 additions and 2 deletions

View File

@ -51,7 +51,8 @@ import org.slf4j.LoggerFactory;
if (ignoreNoSpaceErrors) {
Throwable cause = exception;
while (cause != null && cause instanceof IOException) {
if (cause.getMessage().contains(noSpaceMessage)) {
String message = cause.getMessage();
if (message != null && message.contains(noSpaceMessage)) {
LOG.info("Ignoring no space left exception, " + exception, exception);
return;
}
@ -62,7 +63,8 @@ import org.slf4j.LoggerFactory;
if (ignoreSQLExceptions) {
Throwable cause = exception;
while (cause != null) {
if (cause instanceof SQLException && cause.getMessage().contains(sqlExceptionMessage)) {
String message = cause.getMessage();
if (cause instanceof SQLException && message.contains(sqlExceptionMessage)) {
LOG.info("Ignoring SQLException, " + exception, cause);
return;
}