thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-4231) TJSONProtocol throws unexpected non-Thrift-exception on null strings
Date Fri, 16 Jun 2017 12:24:00 GMT

     [ 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)

Mime
View raw message