History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-662
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: James House
Reporter: Felipe Kamakura
Votes: 0
Watchers: 1
Operations

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

NullPointerException in NthIncludedDayTrigger.getFinalFireTime()

Created: 06/May/08 06:13 PM   Updated: 08/May/08 06:15 PM
Component/s: Triggers
Affects Version/s: 1.6
Fix Version/s: 1.6.1


 Description  « Hide
I get a NullPointerException when calling {{getFinalFireTime()}}. This happens if the property {{endTime}} is NULL.

The problem is in the following code, because you cannot pass a Null value to {{Calendar.setTime()}}
{code}
java.util.Calendar currCal = java.util.Calendar.getInstance();
currCal.setTime(this.endTime);
{code}

 All   Comments   Change History      Sort Order:
James House - [08/May/08 06:15 PM ]
method now short-circuits and (properly) returns null if endTime is null.