Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-15205

HttpClient throws NPE if not started.

    Details

    • Severity:
      S4
    • Defect Source:
      Dev Bug
    • Story Points:
      0
    • Sprint:
      Mule 4 - X-Wing 01/16
    • Affects:
      nothing

      Description

      Using the HttpClient throws a NPE if the send method is used, but the client was not started.

      An `IlegalStateException` saying not started would be much better.

      Trace

      java.lang.NullPointerException
          at org.mule.service.http.impl.service.client.GrizzlyHttpClient.sendAndWait(GrizzlyHttpClient.java:303)
          at org.mule.service.http.impl.service.client.GrizzlyHttpClient.send(GrizzlyHttpClient.java:259)
          at com.mulesoft.service.http.impl.service.client.EEGrizzlyHttpClient.send(EEGrizzlyHttpClient.java:96)
          at com.mulesoft.modules.ckan.internal.CkanConnection.getPackageList(CkanConnection.java:34)
      

        Attachments

          Activity

            People

            • Assignee:
              afelisatti Ana Felisatti
              Reporter:
              juan.desimoni Juan Desimoni
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: