Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-136

SortTool fails on null values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              cannyduck Canny
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: