Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-21181

[GSS](7.3.z) RESTEASY-2550 - NPE when passing null arguments and ParamConverterProviders are registered

XMLWordPrintable

      If ParamConverterProviders are registered, and null arguments are passed to a REST API call, a NullPointerException is thrown in org.jboss.resteasy.client.microprofile.ProxyInvocationHandler.invoke().

      https://github.com/resteasy/Resteasy/blob/master/resteasy-client-microprofile/src/main/java/org/jboss/resteasy/microprofile/client/ProxyInvocationHandler.java

      for (Object arg : args) {
          if (parameterAnnotations[index].length > 0) {
              ParamConverter<?> converter = ((ParamConverterProvider) p)
                  .getConverter(arg.getClass() /** <-- NPE when arg is null **/, 
                  null, parameterAnnotations[index]);
      

              spyrkob Bartosz Spyrko-Smietanko
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: