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 249044 - StringIndexOutOfBoundsException: String index out of range: 2
Summary: StringIndexOutOfBoundsException: String index out of range: 2
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-01 18:55 UTC by ytn01
Modified: 2014-12-09 04:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187769


Attachments
stacktrace (3.16 KB, text/plain)
2014-12-01 18:55 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2014-12-01 18:55:29 UTC
Build: NetBeans IDE 8.0.2 (Build 201411102027)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Mac OS X

User Comments:
ytn01: Not sure what exactly triggered the exception but I was debugging a maven based application, and was stepping through a conditional breakpoint.

GUEST: during build maven project and work with console

GUEST: I don't know where it came from.

GUEST: typed a little too fast

GUEST: constant use of the System.out.println() function, during a lengthy backtracking algorithm, to print the result of each step to the output window -- output window is cleared on occurence

GUEST: problem netbean auto notice

GUEST: i was testing my app and in the bar appears that problem




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
   at java.lang.AbstractStringBuilder.insert(AbstractStringBuilder.java:1005)
   at java.lang.StringBuffer.insert(StringBuffer.java:514)
   at org.netbeans.core.output2.OutputDocument.insertString(OutputDocument.java:256)
   at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1335)
   at javax.swing.JEditorPane.replaceSelection(JEditorPane.java:1163)
   at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:884)
Comment 1 ytn01 2014-12-01 18:55:31 UTC
Created attachment 150820 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-12-06 16:28:17 UTC
I wasn't able to reproduce the bug, but it should be fixed now:
http://hg.netbeans.org/core-main/rev/74670c387d48

Thank you for reporting.
Comment 3 Quality Engineering 2014-12-09 04:21:38 UTC
Integrated into 'main-silver', will be available in build *201412090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/74670c387d48
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #249044: StringIndexOutOfBoundsException: String index out of range: 2