INT-1814 fixed the casting error

This commit is contained in:
Oleg Zhurakousky
2011-03-02 14:26:01 -05:00
parent aa5119711b
commit cf50734744

View File

@@ -47,8 +47,8 @@ public class EventDrivenConsumer extends AbstractEndpoint {
@Override
protected void doStart() {
if (this.handler instanceof IntegrationObjectSupport){
String channelName = ((AbstractSubscribableChannel)this.inputChannel).getComponentName();
if (this.handler instanceof IntegrationObjectSupport && this.inputChannel instanceof IntegrationObjectSupport){
String channelName = ((IntegrationObjectSupport)this.inputChannel).getComponentName();
String componentType = ((IntegrationObjectSupport)this.handler).getComponentType();
componentType = StringUtils.hasText(componentType) ? componentType : "";
String componentName = ((IntegrationObjectSupport)this).getComponentName();