Github user missedone commented on the pull request:

    
https://github.com/apache/cxf/commit/66f652cca276fba8395496454e870cfb82439549#commitcomment-21061956
  
    In 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java:
    In 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/HttpServletRequestFilter.java
 on line 68:
    this cause ArrayIndexOutOfBoundsException, I think it's better to have a 
check on the array length, e.g. `return values == null && values.length != 0 ? 
null : values[0];`
    ```
    java.lang.ArrayIndexOutOfBoundsException: 0
        at 
org.apache.cxf.jaxrs.impl.HttpServletRequestFilter.getParameter(HttpServletRequestFilter.java:68)
        at 
org.apache.cxf.jaxrs.impl.tl.ThreadLocalHttpServletRequest.getParameter(ThreadLocalHttpServletRequest.java:195)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to