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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

jstrachan-2
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() {