blackberry / WebWorks

BlackBerry WebWorks for Smartphones is a platform for building deeply integrated web applications for BlackBerry smartphones
http://developer.blackberry.com/html5
268 stars 51 forks source link

PIM Find doesn't work for null Date Values #63

Open jeffheifetz opened 12 years ago

jeffheifetz commented 12 years ago

The following code will fails to return tasks without a due date value

var noDueFilterExpression = new blackberry.find.FilterExpression("due", "==", null);
result = blackberry.pim.Task.find(noDueFilterExpression, "priority", -1, true);

The problem can be traced down to the filterExpression always failing when the date value is null . The code can be found here - https://github.com/blackberry/WebWorks/blob/master/api/find/src/main/java/blackberry/find/ExpressionTester.java#L170

This means that no PIM find abilities will work when searching for null date values