You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2021/04/26 09:33:00 UTC
[jira] [Assigned] (RATIS-1365) NPE in Combined Client Protocol
Server Side Translator PB
[ https://issues.apache.org/jira/browse/RATIS-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze reassigned RATIS-1365:
---------------------------------
Assignee: Roni Juntunen
> NPE in Combined Client Protocol Server Side Translator PB
> ---------------------------------------------------------
>
> Key: RATIS-1365
> URL: https://issues.apache.org/jira/browse/RATIS-1365
> Project: Ratis
> Issue Type: Bug
> Reporter: Roni Juntunen
> Assignee: Roni Juntunen
> Priority: Minor
>
> SonarQube has detected one possible NPE issue in CombinedClientProtocolServerSideTranslatorPB class. After further investigation, it could be deduced that this NPE error can't occur in the current code, because currently switch-case that is causing the problem handles all possible cases. However it is possible that future modifications changes the situation. Because of that it could be a good idea to throw error in the default branch.
> See SonarCloud issues for more detailed information:
> [https://sonarcloud.io/project/issues?id=apache-ratis&open=AXMispqvSBrYCGcXe6dV&resolved=false&rules=java%3AS2259&types=BUG]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)