From 2b743200d4d0158fed35f0521b1f16411b732652 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Wed, 18 May 2011 11:22:27 -0400 Subject: [PATCH] added null check and comment --- .../interceptor/GlobalChannelInterceptorBeanPostProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java b/spring-integration-core/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java index 22932046f9..ad4bca7fd0 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/channel/interceptor/GlobalChannelInterceptorBeanPostProcessor.java @@ -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); } }