added null check and comment

This commit is contained in:
Mark Fisher
2011-05-18 11:22:27 -04:00
parent e46d5dde7e
commit 2b743200d4

View File

@@ -143,7 +143,8 @@ final class GlobalChannelInterceptorBeanPostProcessor implements BeanPostProcess
}
}
catch (Exception e) {
if (logger.isDebugEnabled()) {
// interceptors not supported, will return null
if (logger.isDebugEnabled() && channel != null) {
logger.debug("interceptors not supported by channel '" + channel + "'", e);
}
}