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

Method does not return when error occurs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
    • Story Points:
      1
    • Sprint:
      K Sprint #1 - Dyn-Config

      Description

      In the class PceWebTopovMessageHandler.java, internal class SetPathHandler, method process, when lspType is null the method logs a error, but does not return.
      It sends lspType as 6th argument to method
      findAndSendPaths(ElementId src, ElementId dst, String bandWidth, String bandWidthType,
      String costType, String lspType, String tunnelName)
      The method findAndSendPaths does a switch case on lspType expression and will return a NullPointerException if lspType is null
      Hence, it the method process should return when lspType is null

        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:
              Resolved: