Issue 1790: Array index 5368 out of range when clicking a file
Status:  Duplicate
Merged:  issue 1155
Owner: ----
Closed:  Feb 2013
Reported by dmitry.n...@ecwid.com, Feb 16, 2013
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.5.0

What steps will reproduce the problem?
1. Try opening a side-by-side or a unified file from a patchset


What is the expected output? What do you see instead?

Expect diff to open. Instead, nothing happens and 'Array index 5368 out of range' in the browser console.

The link however opens for administrator. It does not open when a non-admin clicks it.

I tried to load Gerrit in dev mode, it did not work. I then compiled with debug option. This is where the problem appears:

function com_google_gwt_core_client_impl_Impl_entry__Lcom_google_gwt_core_client_JavaScriptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2(jsFunction){
  return function(){
    try {
      return com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(jsFunction, this, arguments);
    }
     catch (e) {
      throw e; ///// Class$java_lang_ArrayIndexOutOfBoundsException: Array index 5368 out of range
    }
  }

Is there any way I can launch devmode?
Feb 18, 2013
#1 dmitry.n...@ecwid.com
Here is the stacktrace:
   at StackTraceCreator.java:168
    at StackTraceCreator.java:421
    at ArrayIndexOutOfBoundsException.java:34
    at SparseFileContent.java:149
    at PrettyFormatter.java:188
    at AbstractPatchContentTable.java:201
    at SideBySideTable.java:80
    at AbstractPatchContentTable.java:175
    at PatchScreen.java:526
    at PatchScreen.java:461
    at ScreenLoadCallback.java:32
    at JsonUtil.java:114
    at JsonCall20.java:86
    at Request.java:287
    at RequestBuilder.java:395
    at XMLHttpRequest.java:287
    at Impl.java:168
    at Impl.java:213
    at Impl.java:57
Feb 18, 2013
#2 sop@google.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 1155