setFieldValue should allow nulls for all field types
----------------------------------------------------

                 Key: THRIFT-368
                 URL: https://issues.apache.org/jira/browse/THRIFT-368
             Project: Thrift
          Issue Type: Improvement
          Components: Compiler (Java)
            Reporter: Bryan Duxbury
            Assignee: Bryan Duxbury
            Priority: Trivial


Right now, there's no generic field unsetter, and while you might think that 
setFieldValue(fid, null) would do the job, as soon as it runs into a primitive 
field, it will throw an NPE. I think it makes sense to check for null and if 
it's null, call the unsetter for that field.

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

Reply via email to