2008/6/10 MeBigFatGuy <[EMAIL PROTECTED]>:
>
> <code>
> @Override
> public QuartzExchange createExchange(ExchangePattern pattern) {
> return new QuartzExchange(getCamelContext(), pattern, null);
> }
> </code>
> <code>
> public QuartzExchange(CamelContext context, ExchangePattern pattern,
> JobExecutionContext jobExecutionContext) {
> super(context, pattern);
> setIn(new QuartzMessage(this, jobExecutionContext));
> }
> </code>
> <code>
> public QuartzMessage(QuartzExchange exchange, JobExecutionContext
> jobExecutionContext) {
> this.jobExecutionContext = jobExecutionContext;
> setExchange(exchange);
> setBody(jobExecutionContext.getJobDetail());
> }
> </code>
>
> looks to me that null in the first code block, gets passed down in the
> QuartzMessage ctor, and is dereferenced there. Seems like it always creates
> NPEs, to me.
Great catch! Patch applied with thanks
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com