Uploaded image for project: 'Java Mission Control'
  1. Java Mission Control
  2. JMC-7452

Aggregators should not return null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • 9.1.0
    • None
    • Mission Control Core
    • None

    Description

      Currently there is some inconsistency in how aggregators return values, those that return a collection return an empty collection but those that return single values return null if there are no items in the item collection they are aggregating over. We should consider ensuring aggregators return Optional values to avoid unnecessary NPEs.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hdafgard Henrik Dafgård
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: