Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1365

NPE in Combined Client Protocol Server Side Translator PB

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • HadoopRPC
    • None

    Description

      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

       

      Attachments

        Issue Links

          Activity

            People

              softgitron Roni Juntunen
              softgitron Roni Juntunen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: