Uploaded image for project: 'OODT (Retired)'
  1. OODT (Retired)
  2. OODT-429

filemgr query throws NPE when sorting by key with possibly empty values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • file manager
    • None

    Description

      For a given met element, if any product has a null value, the entire sort fails with NPE.

      We should decide whether nulls appear at the beginning or the end of such a sort. My vote is at the end, since nulls are usually the least interesting value.

      However, consider the use case of sorting by ProductReceivedTime. Sort only occurs in ascending order (I am not aware of descending capability). If nulls appeared at the end, it would be slightly difficult to get the latest product (programmatically). For this type of sort, it would be useful to put nulls at the beginning, or even remove them altogether. Thoughts?

      Attachments

        Activity

          People

            Unassigned Unassigned
            rickdn Ricky Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: