Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-136

Collection properties of data objects should return empty collection instead of null

    XMLWordPrintableJSON

Details

    Description

      This is a wish. Some data objects in org.apache.opencmis.commons return null for collection properties in case of the collection is empty. I would like to suggest that collection return always empty list rather than null. Null leads to unnecessary checks everywhere and causes a lot of NPE. It is simply error prone.

      What do you think?

      Attachments

        Activity

          People

            klevenzs Stephan Klevenz
            klevenzs Stephan Klevenz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: