Issue Details (XML | Word | Printable)

Key: QRTZNET-132
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Marko Lahma
Reporter: Julien Letrouit
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Quartz.NET

NullReferenceException when computing next fire time for misfired triggers

Created: 15/Oct/08 12:34 PM   Updated: 15/Oct/08 11:35 PM
Component/s: Triggers
Affects Version/s: 1.0 RC 3
Fix Version/s: 1.0

File Attachments: 1. Text File CronTrigger.cs (29 kB)
2. Text File JobStoreSupport.cs (172 kB)

Environment: All


 Description  « Hide
  Hi,

  I got some NullReferenceException at quartz startup due to triggers that misfired and that had a cron expression so that CronExpression.GetTimeAfter(DateTime.Now) returns null. The null value was not handled correctly in CronTrigger and JobStoreSupport.

  I made the corrections in CronTrigger.cs and JobStoreSupport.cs. How could I upload these files?

  Julien

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Julien Letrouit added a comment - 15/Oct/08 12:36 PM
Found the upload file link... Here are the corrections.

Marko Lahma added a comment - 15/Oct/08 11:35 PM
Thanks for reporting this, the fix is valid and I've applied it to trunk.

Thanks a bunch!