You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Michael Osipov (JIRA)" <de...@velocity.apache.org> on 2018/09/29 22:07:00 UTC
[jira] [Closed] (VELTOOLS-136) SortTool fails on null values
[ https://issues.apache.org/jira/browse/VELTOOLS-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed VELTOOLS-136.
-----------------------------------
> 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-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org