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); } }