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

        1.
        Make sure Optionals values are defined before calling their `get` method - ArtifactsBusinessLogic Sub-task Closed franciscovila
        2.
        Make sure Optionals values are defined before calling their `get` method - ComponentBusinessLogic Sub-task Closed chris.andre
        3.
        Make sure Optionals values are defined before calling their `get` method - ComponentInstanceBusinessLogic Sub-task Closed franciscovila
        4.
        Make sure Optionals values are defined before calling their `get` method - CompositionBusinessLogic Sub-task Closed chris.andre
        5.
        Make sure Optionals values are defined before calling their `get` method - GroupBusinessLogic Sub-task Closed franciscovila
        6.
        Make sure Optionals values are defined before calling their `get` method - InterfaceOperationBusinessLogic Sub-task Closed chris.andre
        7.
        Make sure Optionals values are defined before calling their `get` method - ResourceBusinessLogic Sub-task Closed chris.andre
        8.
        Make sure Optionals values are defined before calling their `get` method - NodeFilterValidator Sub-task Closed chris.andre
        9.
        Make sure Optionals values are defined before calling their `get` method - ForwardingPathToscaUtil Sub-task Closed franciscovila
        10.
        Make sure Optionals values are defined before calling their `get` method - IdMapper Sub-task Closed chris.andre
        11.
        Make sure Optionals values are defined before calling their `get` method - OrchestrationTemplateDaoZusammenImpl Sub-task Closed chris.andre
        12.
        Make sure Optionals values are defined before calling their `get` method - UnifiedCompositionService Sub-task Closed chris.andre
        13.
        Make sure Optionals values are defined before calling their `get` method - HeatToToscaUtil Sub-task Closed franciscovila
        14.
        Make sure Optionals values are defined before calling their `get` method - ComponentBusinessLogic Sub-task Closed franciscovila
        15.
        Make sure Optionals values are defined before calling their `get` method - ComponentInstanceInputsMergeBL Sub-task Closed franciscovila
        16.
        Make sure Optionals values are defined before calling their `get` method - ToscaElementOperation Sub-task Closed franciscovila
        17.
        Make sure Optionals values are defined before calling their `get` method - ModelOperation Sub-task Closed franciscovila
        18.
        Make sure Optionals values are defined before calling their `get` method - TranslatorHeatToToscaParameterConverter Sub-task Closed franciscovila
        19.
        Make sure Optionals values are defined before calling their `get` method - TranslatorHeatToToscaPropertyConverter Sub-task Closed franciscovila
        20.
        Make sure Optionals values are defined before calling their `get` method - EntitlementPoolZusammenDaoImpl Sub-task Closed franciscovila
        21.
        Make sure Optionals values are defined before calling their `get` method - ToscaAnalyzerServiceImpl. Sub-task Closed franciscovila

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

              Created:
              Updated:
              Resolved: