camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r922230 - /camel/trunk/camel-core/src/main/java/org/apache/camel/impl/ScheduledPollConsumer.java
Date Fri, 12 Mar 2010 12:16:58 GMT
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");
     }
 



Mime
View raw message