thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dugenkui (Jira)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-5245) NPE when the value of map's key is null
Date Sat, 04 Jul 2020 18:50:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-5245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

dugenkui updated THRIFT-5245:
-----------------------------
    Summary: NPE when the value of map's key is null  (was: NPE when map param value is null)

> NPE when the value of map's key is null
> ---------------------------------------
>
>                 Key: THRIFT-5245
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5245
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: dugenkui
>            Priority: Major
>
> When the value of map is null, there seem always occurs NPE in the implements of TProtocol.java.
> {code:java}
> @Override
> public void writeString(String str) throws TException {
>   byte[] dat = str.getBytes(StandardCharsets.UTF_8);
>   writeI32(dat.length);
>   trans_.write(dat, 0, dat.length);
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message