Yes, it can, because the list element is **never** null, only element.data may be null. But that's perfectly ok.
In other words, you have to have an {{element}} for each entry, including those with {{null}} data. ________________________________ Von: xiaopeng.he (JIRA) Gesendet: 21.04.2015 03:17 An: dev@thrift.apache.org Betreff: [jira] [Commented] (THRIFT-3101) Thrift cannot support the collection whose element is null [ https://issues.apache.org/jira/browse/THRIFT-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14504106#comment-14504106 ] xiaopeng.he commented on THRIFT-3101: ------------------------------------- But this cannot avoid the dirty data, such as {null} > Thrift cannot support the collection whose element is null > ---------------------------------------------------------- > > Key: THRIFT-3101 > URL: https://issues.apache.org/jira/browse/THRIFT-3101 > Project: Thrift > Issue Type: Bug > Components: Java - Library > Reporter: xiaopeng.he > Attachments: thrift-test.zip > > > Thrift's protocol cannot support the collection whose element is null -- This message was sent by Atlassian JIRA (v6.3.4#6332)