chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] Commented: (CMIS-136) Collection properties of data objects should return empty collection instead of null
Date Fri, 26 Feb 2010 09:24:27 GMT

    [ https://issues.apache.org/jira/browse/CMIS-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838777#action_12838777
] 

Florian Müller commented on CMIS-136:
-------------------------------------

I agree. It's not consistent at the moment. I can tackle that.

> Collection properties of data objects should return empty collection instead of null
> ------------------------------------------------------------------------------------
>
>                 Key: CMIS-136
>                 URL: https://issues.apache.org/jira/browse/CMIS-136
>             Project: Chemistry
>          Issue Type: Wish
>          Components: opencmis-provider
>            Reporter: Stephan Klevenz
>            Priority: Minor
>
> 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?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message