[ https://issues.apache.org/jira/browse/VELTOOLS-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELTOOLS-136. ------------------------------------- Resolution: Fixed Assignee: Claude Brisson The sorting methods (which are now accessible via the new CollectionTool) now filter out null values before sorting. > 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 > Assignee: Claude Brisson > Priority: Major > Fix For: 3.0 > > > 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 was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org