SortTool fails on null values
-----------------------------
Key: VELTOOLS-136
URL: https://issues.apache.org/jira/browse/VELTOOLS-136
Project: Velocity Tools
Issue Type: Bug
Affects Versions: 2.0
Reporter: Canny
Fix For: 2.0.x
The sort tool uses "comparison = right.compareTo(null);" on line 276. That can
fail in the case the right object compareTo() method can
not handle null params. I.e. java.util.Date can not handle that, so the sort
result is empty. The sort tool should support sorting of collections with
null values.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]