Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3123

ParamConverterProvider NullPointerException on methods with no params

XMLWordPrintable

    If we have a method declared like this:

    @GET
    @Path("/me/operations")
    public List<String> getUserOperations() throws Exception; 

    And we have a ParamConverterProvider registered.

    We get a NullPointerException in this line:

    org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:90)

    Link to code: https://github.com/resteasy/resteasy/blob/237f9ac028c1070af325041ff2e34017a4201bc1/resteasy-client-microprofile-base/src/main/java/org/jboss/resteasy/microprofile/client/ProxyInvocationHandler.java#L90

    "args" can be null, so we need to check that.

    Thanks

            pberan@redhat.com Petr Beran
            fabrigreg Fabricio Gregorio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: