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

Null matrix parameters not accepted by the reasteasy client library

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.RC1
    • 2.0-beta-2
    • None
    • None

      When you send a null for a matrix param on a proxy-ed request via the
      client lib you get an NPE in the invoker.

      java.lang.NullPointerException
      at org.jboss.resteasy.client.ClientRequest.toString(ClientRequest.java:213)
      at org.jboss.resteasy.client.ClientRequest.matrixParameter(ClientRequest.java:268)
      at org.jboss.resteasy.client.core.marshallers.MatrixParamMarshaller.build(MatrixParamMarshaller.java:20)
      at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:98)
      at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:59)
      at $Proxy23.getTickets(Unknown Source)

      The other marshallers handle null, but MatrixParamMarshaller does not.

              patriot1burke@gmail.com Bill Burke (Inactive)
              AvneetKang Avneet Kang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: