Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-4315

RestExecutor's andCheckResponse throws a NullPointerException when the request doesn't get a response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.8.3
    • 2.8
    • REST

    Description

      RestExecutor.MethodExecutor#andCheckResponse tries to execute the service method and then calls response.getEntity() in a finally block.

      However, if the execution throws an exception (for example, because an HTTP connection could not be made on that port) then response will still be null, resulting in an NPE.

      Attachments

        Issue Links

          Activity

            People

              jwalton joe
              jwalton joe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: