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

Key: QUARTZ-519
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: James House
Reporter: Jasper Rosenberg
Votes: 0
Watchers: 1
Operations

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

NullPtrException in PropertiesParser.getPropertyGroup() for empty properties

Created: 09/Oct/06 08:17 PM   Updated: 24/Dec/07 01:30 AM
Component/s: Core
Affects Version/s: 1.6
Fix Version/s: 1.6


 Description  « Hide
Properties are a Hashtable underneath and so do not allow null values (unlike a HashMap would). So when an empty property is translated by getStringProperty() which returns null, we get a null pointer exception.

This was discovered by a user on this thread: http://forums.opensymphony.com/thread.jspa?messageID=92493

The fix is to provide a default value of empty string to getStringProperty so it won't use the default default of null.

 All   Comments   Change History      Sort Order:
Jasper Rosenberg - [09/Oct/06 08:23 PM ]
Also added unit test for this case.