You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2017/06/17 16:07:00 UTC
[jira] [Resolved] (THRIFT-4231) TJSONProtocol throws unexpected
non-Thrift-exception on null strings
[ https://issues.apache.org/jira/browse/THRIFT-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-4231.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.11.0
Committed.
> TJSONProtocol throws unexpected non-Thrift-exception on null strings
> --------------------------------------------------------------------
>
> Key: THRIFT-4231
> URL: https://issues.apache.org/jira/browse/THRIFT-4231
> Project: Thrift
> Issue Type: Bug
> Components: C# - Compiler
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Minor
> Fix For: 0.11.0
>
>
> When a required (e.g. string) field is not set, the C# code may throw a non-Thrift nullptr exception, which at this point is a bit unexpected. Happened to me with TJSON but is in fact a problem of required fields not being checked properly in the generated struct.Write() code.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)