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

NPE occurs while deactivating RestDeviceProvider

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: None
    • Labels:

      Description

      NullPointerException occurs while deactivating org.onosproject.restsb app in HttpSBControllerImpl.getUrlString(..) method.
      Accessing object's method without checking if its not null:

      protected String getUrlString(DeviceId device, String request) {
      if (deviceMap.get(device).url() != null) {
      ...

      java.lang.NullPointerException
      at org.onosproject.protocol.http.ctl.HttpSBControllerImpl.getUrlString(HttpSBControllerImpl.java:282)
      at org.onosproject.protocol.rest.ctl.RestSBControllerImpl.getUrlString(RestSBControllerImpl.java:130)
      at org.onosproject.protocol.http.ctl.HttpSBControllerImpl.getWebTarget(HttpSBControllerImpl.java:267)
      at org.onosproject.protocol.rest.ctl.RestSBControllerImpl.getWebTarget(RestSBControllerImpl.java:107)
      at org.onosproject.protocol.http.ctl.HttpSBControllerImpl.getResponse(HttpSBControllerImpl.java:145)
      at org.onosproject.protocol.http.ctl.HttpSBControllerImpl.post(HttpSBControllerImpl.java:134)

        Attachments

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

          Activity

            People

            Assignee:
            mmach Michal Mach
            Reporter:
            mmach Michal Mach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: