Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-754

Check null invocation in AbstractRestInvocation to avoid unexpected NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-1.0.0
    • Java-Chassis
    • None

    Description

      In a 404 situation, the invocation in AbstractRestInvocation is not initialized. Once user defines a custom HttpServerFilter and thrown an Exception in it's beforeSendResponse method, the AbstractRestInvocation will throw a NPE because in it's error log code, invocation is invoked without null check.

      Attachments

        Issue Links

          Activity

            People

              yaohaishi Haishi Yao
              yaohaishi Haishi Yao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: