You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Cerny (JIRA)" <ji...@apache.org> on 2014/12/05 17:20:13 UTC

[jira] [Created] (WICKET-5784) arraycopy with bad length in AbstractRequestLogger:172

Jan Cerny created WICKET-5784:
---------------------------------

             Summary: arraycopy with bad length in AbstractRequestLogger:172
                 Key: WICKET-5784
                 URL: https://issues.apache.org/jira/browse/WICKET-5784
             Project: Wicket
          Issue Type: Bug
          Components: wicket, wicket-devutils
    Affects Versions: 6.17.0
         Environment: 6.17.0 with DebugBar from devutils on Tomcat 7, Java 7 (Oracle)
            Reporter: Jan Cerny
            Priority: Minor


When clicking on DebugBar org.apache.wicket.devutils.inspector.LiveSessionsPage NullPointerException is thrown.
After investigating the reason I think AbstractRequestLogger:172 arraycopy params cause it. 
{{arraycopy(requestWindow, 0, copy, requestWindow.length - oldestPos, indexInWindow);}}
Should be changed to:
{{arraycopy(requestWindow, 0, copy, requestWindow.length - oldestPos, oldestPos);}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)