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

Key: QUARTZ-665
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: James House
Reporter: Mark Schnitzius
Votes: 0
Watchers: 0
Operations

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

Null pointer exception in Trigger.equals()

Created: 21/May/08 02:44 AM   Updated: 16/Jun/08 09:23 AM
Component/s: Triggers
Affects Version/s: 1.6
Fix Version/s: 1.6.1

File Attachments: 1. Text File QUARTZ-665.patch (1 kb)



 Description  « Hide
The equals() method on Trigger throws a NullPointerException when calling something like

    new SimpleTrigger().equals(new SimpleTrigger())

There should also be equals() and hashCode() methods defined for at least JobDetail and all of the Calendar classes, as these are often serialized by classes implementing JobStore.

 All   Comments   Change History      Sort Order:
Henri Yandell - [25/May/08 12:31 AM ]
Confirmed. Attaching unit test and source code fix.

James House - [16/Jun/08 09:23 AM ]
Applied Henri's patch, provided equivalent equals()/hashCode() for JobDetail as well.