[ https://issues.apache.org/jira/browse/THRIFT-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer closed THRIFT-3101. ------------------------------ Resolution: Won't Fix The behaviour (or limitation) you describe is by design. Thrift doesn't allow {{null}} values in certain places, e.g. as function results or list members. If you absolutely need to transport null pointers, try this workaround: {code:title=thrift.idl} struct element { 1 : optional string data } service foobar { list<element> test( 1: list<element> arg) } {code} The {{optional}} will result in an {{isset}} flag becoming available which can be used to determine whether or not {{data}} has been set and hence contains valid data. > 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)