[jbpm-commits] JBoss JBPM SVN: r5123 - jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/jobexecutor.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Jun 25 16:12:50 EDT 2009
Author: ainze
Date: 2009-06-25 16:12:49 -0400 (Thu, 25 Jun 2009)
New Revision: 5123
Modified:
jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java
Log:
the transaction is not required, fixed nullpointer
Modified: jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java
===================================================================
--- jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java 2009-06-25 13:49:50 UTC (rev 5122)
+++ jbpm4/trunk/modules/pvm/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java 2009-06-25 20:12:49 UTC (rev 5123)
@@ -60,7 +60,11 @@
&& (jobExecutor!=null)
) {
jobExecutorNotificationScheduled = true;
- transaction.registerSynchronization(new JobAddedNotification(jobExecutor));
+
+ //a transaction is not required (can be null)
+ if (transaction != null) {
+ transaction.registerSynchronization(new JobAddedNotification(jobExecutor));
+ }
}
}
More information about the jbpm-commits
mailing list