Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-6503

Potential null value dereferenced before checking for null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      K Bug Sprint

      Description

      In HttpSBControllerImpl.java in method post(Dev..,..,..): response is received from a call to getResponse method and it is checked for response.hasEntity().
      But, when the switch is turned off or in other cases, there is a null response from the switch and it cannot be dereferenced.
      So, need to check for null before dereferencing.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            palashk Palash Kala
            Reporter:
            palashk Palash Kala
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: