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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.8.3
    • Affects Version/s: 2.8
    • Component/s: REST

      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.

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

                Created:
                Updated:
                Resolved: