[
https://issues.apache.org/jira/browse/THRIFT-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer updated THRIFT-4231:
-------------------------------
Description: 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. (was:
When a required field is not set, the C# code throws a non-Thrift exception,
which at this point is a bit unexpected.)
> 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# - Library
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Minor
>
> 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)