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.
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)
Created attachment 150820 [details] stacktrace
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.
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