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.
Summary: | java.lang.IndexOutOfBoundsException: Invalid line index=40 >= lineCount=18 | ||
---|---|---|---|
Product: | utilities | Reporter: | Petr Dvorak <joshis> |
Component: | Diff | Assignee: | Tomas Stupka <tstupka> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | adam_myatt, hmichel, i30817, laurin1, mmirilovic, oj-nb |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
URL: | http://statistics.netbeans.org/analytics/detail.do?id=35987 | ||
Issue Type: | DEFECT | Exception Reporter: | 18054 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace |
Description
Petr Dvorak
2008-03-12 20:51:18 UTC
Most likely a wrong line number passed from the MergePanel. I will just add here the same comment that I wrote in the statistics page here (just in case - the original comment displayed in the first description seems to be from a very old build of netbeans, see statistics). I got this exception when I tried to resolve a conflict in SVN right after I tried to revert modifications (over multiple selected revisions) in Search History. I have also updated Summary and URL to statistics page. This could be a duplicate of http://www.netbeans.org/issues/show_bug.cgi?id=65970. Please attach those 3 files (Base, Locally Modified, Remotely Modified) that are to be merged so that we can reproduce it here. We are unable to reproduce it on arbitrary files. This issue has already 10 duplicates Created attachment 61902 [details]
stacktrace
*** Issue 162223 has been marked as a duplicate of this issue. *** Build: NetBeans IDE 6.7 RC2 (Build 200906042131) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Linux, 2.6.27-14-generic, i386 User Comments: Stacktrace: java.lang.IndexOutOfBoundsException: Invalid line index=2574 >= lineCount=2574 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:112) at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:669) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1371) at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:644) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176) at org.netbeans.modules.merge.builtin.visualizer.MergePanel.copy(MergePanel.java:1114) Created attachment 83406 [details]
stacktrace
hmichel: Please attach those 3 files (Base, Locally Modified, Remotely Modified) that are to be merged so that we can reproduce it here. We are unable to reproduce it on arbitrary files. Created attachment 100860 [details]
stacktrace
using CVS Merge Conflicts Resolver. clicked the Accept and Next button.
Created attachment 100861 [details]
stacktrace
100 reports so far, at least P2 (In reply to comment #14) > 100 reports so far, at least P2 since 6.8 (091204) we had only two reports - one in 6.9.1 (101108) and one in 7.0 (110408). No report from 7.1. Problem probably already fixed. |