This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246174 - ArrayIndexOutOfBoundsException: 990
Summary: ArrayIndexOutOfBoundsException: 990
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords: REGRESSION
: 246259 254177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-31 21:22 UTC by Jesse Glick
Modified: 2015-08-06 14:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211029


Attachments
stacktrace (1.92 KB, text/plain)
2014-07-31 21:23 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2014-07-31 21:22:59 UTC
Build: NetBeans IDE Dev (Build 20140731-3ee7dd0e3967)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.60-b09, Java(TM) SE Runtime Environment, 1.7.0_60-b19
OS: Linux

User Comments:
jglick: Switched Git branches on command line. No diff window open that I know of (had recently closed one and committed).




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: 990
   at org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager$ScrollMapCached.compute(DiffViewManager.java:728)
   at org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager$ScrollMapCached.getScrollMap(DiffViewManager.java:698)
   at org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager.smartScroll(DiffViewManager.java:522)
   at org.netbeans.modules.diff.builtin.visualizer.editable.DiffViewManager.scroll(DiffViewManager.java:201)
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.showCurrentDifference(EditableDiffView.java:918)
   at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.access$2200(EditableDiffView.java:114)
Comment 1 Jesse Glick 2014-07-31 21:23:01 UTC
Created attachment 148452 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-08-01 07:15:16 UTC
i don't know, i can't reproduce. If it normally works and you can't see any other problems this may be a mere inconsistency between refreshing diffs (after the file has been changed on disk) and computing data for smart-scrolling. It may be enough to just skip computing if bounds do not match and wait for diff computation to trigger another round when it's ready.
Comment 3 Ondrej Vrabec 2014-08-05 07:05:09 UTC
*** Bug 246259 has been marked as a duplicate of this bug. ***
Comment 4 Ondrej Vrabec 2014-08-05 07:13:02 UTC
fix: http://hg.netbeans.org/core-main/rev/89dd753c2744
Comment 5 Ondrej Vrabec 2014-08-05 07:22:22 UTC
release801: #62b045715448
Comment 6 Quality Engineering 2014-08-06 02:38:51 UTC
Integrated into 'main-silver', will be available in build *201408060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/89dd753c2744
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #246174 - ArrayIndexOutOfBoundsException: 990
Comment 7 Quality Engineering 2014-08-07 14:47:30 UTC
Integrated into 'releases/release801', will be available in build *201408071314* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/62b045715448
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #246174 - ArrayIndexOutOfBoundsException: 990
(grafted from 89dd753c274413b29ab2f208d5a8cf75de995c72)
Comment 8 Ondrej Vrabec 2015-08-06 14:43:14 UTC
*** Bug 254177 has been marked as a duplicate of this bug. ***