[
https://issues.apache.org/jira/browse/RATIS-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-1365.
-------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
I have merged the pull request. Thanks, [~softgitron]!
> 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
> Components: HadoopRPC
> Reporter: Roni Juntunen
> Assignee: Roni Juntunen
> Priority: Minor
> Fix For: 2.1.0
>
>
> 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)