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 250569 - IndexOutOfBoundsException: Invalid line index=35 >= lineCount=29
Summary: IndexOutOfBoundsException: Invalid line index=35 >= lineCount=29
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-20 09:34 UTC by terje7601
Modified: 2015-04-16 06:36 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215546


Attachments
stacktrace (4.75 KB, text/plain)
2015-02-20 09:34 UTC, terje7601
Details
stacktrace (4.75 KB, text/plain)
2015-03-26 08:05 UTC, terje7601
Details
stacktrace (2.09 KB, text/plain)
2015-04-14 22:40 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-02-20 09:34:01 UTC
This issue was reported manually by sdedic.
It already has 6 duplicates 


Build: NetBeans IDE Dev (Build 201502120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 7

User Comments:
terje7601: Editing a pom.xml file

KhArtNJava: fg

KhArtNJava: bcvb

GUEST: No idea

GUEST: Sorry... unable to determine when it happened.

KhArtNJava: sdf




Stacktrace: 
java.lang.IndexOutOfBoundsException: Invalid line index=35 >= lineCount=29
   at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:91)
   at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:923)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1386)
   at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:898)
   at org.openide.text.NbDocument.findLineOffset(NbDocument.java:201)
   at org.openide.text.DocumentLine$Set.offset(DocumentLine.java:1065)
Comment 1 terje7601 2015-02-20 09:34:02 UTC
Created attachment 152108 [details]
stacktrace
Comment 2 terje7601 2015-03-26 08:05:09 UTC
Created attachment 152850 [details]
stacktrace

Working on a Java project (I think I just deleted some lines in the pom.xml)
Comment 3 Jesse Glick 2015-04-14 22:40:15 UTC
Created attachment 153196 [details]
stacktrace

Not sure.
Comment 4 Tomas Stupka 2015-04-15 16:50:34 UTC
fixed in jet-main #99bd1f834e25
Comment 5 Quality Engineering 2015-04-16 06:36:22 UTC
Integrated into 'main-silver', will be available in build *201504160452* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/99bd1f834e25
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #250569 - IndexOutOfBoundsException: Invalid line index=35 >= lineCount=29