You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Rui Wang (Jira)" <ji...@apache.org> on 2020/09/14 15:55:00 UTC
[jira] [Resolved] (RATIS-1058) Avoid NPE when response is null in
CombinedClientProtocolServerSideTranslatorPB.sendClient
[ https://issues.apache.org/jira/browse/RATIS-1058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rui Wang resolved RATIS-1058.
-----------------------------
Resolution: Won't Fix
> Avoid NPE when response is null in CombinedClientProtocolServerSideTranslatorPB.sendClient
> ------------------------------------------------------------------------------------------
>
> Key: RATIS-1058
> URL: https://issues.apache.org/jira/browse/RATIS-1058
> Project: Ratis
> Issue Type: Bug
> Reporter: Rui Wang
> Assignee: Rui Wang
> Priority: Major
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> Response is initialized as NULL: https://github.com/apache/incubator-ratis/blob/61f038b6bea2934e910e8504df0d8c79d6d34799/ratis-hadoop/src/main/java/org/apache/ratis/hadooprpc/client/CombinedClientProtocolServerSideTranslatorPB.java#L56
> And the it could pass through the following SWITCH statement so remains as NULL: https://github.com/apache/incubator-ratis/blob/61f038b6bea2934e910e8504df0d8c79d6d34799/ratis-hadoop/src/main/java/org/apache/ratis/hadooprpc/client/CombinedClientProtocolServerSideTranslatorPB.java#L76
> And then NPE will be thrown at here https://github.com/apache/incubator-ratis/blob/61f038b6bea2934e910e8504df0d8c79d6d34799/ratis-hadoop/src/main/java/org/apache/ratis/hadooprpc/client/CombinedClientProtocolServerSideTranslatorPB.java#L82
--
This message was sent by Atlassian Jira
(v8.3.4#803005)