filemgr query throws NPE when sorting by key with possibly empty values
-----------------------------------------------------------------------
Key: OODT-429
URL: https://issues.apache.org/jira/browse/OODT-429
Project: OODT
Issue Type: Bug
Components: file manager
Affects Versions: 0.3
Reporter: Ricky Nguyen
Fix For: 0.4
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?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira