You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2010/03/12 13:16:58 UTC

svn commit: r922230 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java

Author: davsclaus
Date: Fri Mar 12 12:16:58 2010
New Revision: 922230

URL: http://svn.apache.org/viewvc?rev=922230&view=rev
Log:
CAMEL-1588: Fixed a potential NPE if getEndpoint was overridden

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java?rev=922230&r1=922229&r2=922230&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java Fri Mar 12 12:16:58 2010
@@ -53,7 +53,7 @@ public abstract class ScheduledPollConsu
 
         // TODO: this executor should also be shutdown when CamelContext stops
         this.executor = endpoint.getCamelContext().getExecutorServiceStrategy()
-                            .newScheduledThreadPool(this, getEndpoint().getEndpointUri(), DEFAULT_THREADPOOL_SIZE);
+                            .newScheduledThreadPool(this, endpoint.getEndpointUri(), DEFAULT_THREADPOOL_SIZE);
         ObjectHelper.notNull(executor, "executor");
     }