camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r666099 - /activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java
Date Tue, 10 Jun 2008 13:28:22 GMT
Author: jstrachan
Date: Tue Jun 10 06:28:21 2008
New Revision: 666099

URL: http://svn.apache.org/viewvc?rev=666099&view=rev
Log:
added patch for NPE suggested here : http://www.nabble.com/Question-about-QuartzEndpoint.java-tp17745769s22882p17745769.html

Modified:
    activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java

Modified: activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java?rev=666099&r1=666098&r2=666099&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java
(original)
+++ activemq/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzMessage.java
Tue Jun 10 06:28:21 2008
@@ -32,7 +32,9 @@
     public QuartzMessage(QuartzExchange exchange, JobExecutionContext jobExecutionContext)
{
         this.jobExecutionContext = jobExecutionContext;
         setExchange(exchange);
-        setBody(jobExecutionContext.getJobDetail());
+        if (jobExecutionContext != null) {
+            setBody(jobExecutionContext.getJobDetail());
+        }
     }
 
     public JobExecutionContext getJobExecutionContext() {



Mime
View raw message