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

metadata possible be null but not cosider

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.10.0
    • Component/s: None
    • Labels:

      Description

      On the method private Versioned<ClusterMetadata> fetchMetadata(String metadataUrl),the metadata is initialised as NULL, and the metadata = mapper.readValue(...) may be NULL,but there is no check, so if metadata is NULL, metadata.getName() will throw an exception that is not caught

        Attachments

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

          Activity

            People

            • Assignee:
              xiaoke31 zhiyong ke
              Reporter:
              xiaoke31 zhiyong ke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: