[ 
https://issues.apache.org/jira/browse/THRIFT-2974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998786#comment-14998786
 ] 

Hudson commented on THRIFT-2974:
--------------------------------

SUCCESS: Integrated in Thrift #1719 (See 
[https://builds.apache.org/job/Thrift/1719/])
THRIFT-2974 fix optional writeToParcel Client: Java Patch: Max Spencer (nsuke: 
rev c04fb0069e814d761248f26a24142730d5e80501)
* compiler/cpp/src/generate/t_java_generator.cc


> writeToParcel throws NPE for optional enum fields
> -------------------------------------------------
>
>                 Key: THRIFT-2974
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2974
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.9.2, 0.9.3
>            Reporter: David Li
>            Assignee: Marek Kedzierski
>
> The recent change to the Java compiler added generated Android compatible, 
> parcelable Thrift objects.
> https://github.com/apache/thrift/commit/f9b8f5e64137248ea2a1b95312916491d23ab94a#diff-80220be8df49fb98fe5f899544d8368dR1569
> However, for optional enum fields that are null, getValue() will throw an NPE 
> because no checks are made that the enum is set before being written.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to