[jbpm-commits] JBoss JBPM SVN: r1547 - pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Jul 8 09:28:39 EDT 2008


Author: porcherg
Date: 2008-07-08 09:28:39 -0400 (Tue, 08 Jul 2008)
New Revision: 1547

Modified:
   pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java
Log:
check that timer has an execution (otherwise execution of the timer creates a NullPointerException)

Modified: pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java
===================================================================
--- pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java	2008-07-08 13:23:59 UTC (rev 1546)
+++ pvm/trunk/modules/core/src/main/java/org/jbpm/pvm/internal/jobexecutor/JobExecutorTimerSession.java	2008-07-08 13:28:39 UTC (rev 1547)
@@ -55,6 +55,9 @@
   protected void validate(Timer timer) {
     if (timer == null)
       throw new PvmException("null timer scheduled");
+    if (timer.getExecution() == null) {
+      throw new PvmException("timer has no execution specified");
+    }
     if ( (timer.getSignalName() == null)
          && (timer.getEventName() == null)
        )




More information about the jbpm-commits mailing list