Uploaded image for project: 'Portal'
  1. Portal
  2. PORTAL-136 Raise JUnit test coverage ONAP Portal to 50% for Beijing
  3. PORTAL-153

Null check for ClientResponse object in PolicyUril.java of Ecomp-portal-be-common submodule

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Medium Medium
    • Beijing Release
    • None
    • Portal
    • None
    • Portal Sprint 3, Portal Sprint 4, Portal Sprint 5

      Sonar has identified possible NullPointerException in Ecomp-portal-BE-Common sub module.

      https://sonar.onap.org/component_issues/index?id=org.onap.portal%3Aonap-portal-parent#resolved=false|severities=BLOCKER

      At line number 99, ClientResponse object cres is used for statuscode population without any null check, so Included statuscode inside if condition, which is checking null for the cres object.

       

            giri giri
            giri giri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: