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

Null pointer exception can occur after null checking

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.0
    • Component/s: None
    • Labels:
    • Sprint:
      Ibis Sprint 3 - Platform

      Description

      In onos/core/store/dist/src/main/java/org/onosproject/store/group/impl/DistributedGroupStore.java - class GroupStoreKeyMapListener - event method, log.trace method can create Null Pointer Exception.

      public void event(...) {
      if ((key == null) && (group == null))

      { ... }

      else (group == null)

      { .... }


      // 'key' can be 'null', here
      log.trace(" ...", key.deviceId()); // Null pointer exception can occur.

        Attachments

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

          Activity

            People

            Assignee:
            jaegonkim Jaegon Kim
            Reporter:
            jaegonkim Jaegon Kim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: