Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-2902

Make sure Optionals values are defined before calling their `get` method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Jakarta Release
    • Frankfurt Release
    • None

      SonarCloud reports that in some cases, the content of Optional variables is accessed without testing the presence of said variables. This could lead to `NoSuchElementException` being thrown in the code.

      More details can be found at: https://sonarcloud.io/project/issues?id=onap_sdc&resolved=false&rules=java%3AS3655&severities=MAJOR&types=BUG

        There are no Sub-Tasks for this issue.

            franciscovila franciscovila
            chris.andre chris.andre
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: