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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8.3
    • Component/s: REST
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: