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 257991 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-15 13:35 UTC by Vladimir Voskresensky
Modified: 2016-02-15 16:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222531


Attachments
stacktrace (6.18 KB, text/plain)
2016-02-15 13:35 UTC, Vladimir Voskresensky
Details
stacktrace (6.18 KB, text/plain)
2016-02-15 13:46 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2016-02-15 13:35:08 UTC
Build: NetBeans IDE Dev (Build 20160215-8f3237bda5c1)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.66-b17, Java(TM) SE Runtime Environment, 1.8.0_66-b17
OS: SunOS

User Comments:
vv159170: print in output from plugin




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.charAt(String.java:658)
   at org.netbeans.core.output2.AbstractLines.addSegment(AbstractLines.java:1143)
   at org.netbeans.core.output2.AbstractLines.updateLinesInfo(AbstractLines.java:1211)
   at org.netbeans.core.output2.OutWriter.print(OutWriter.java:602)
   at org.netbeans.core.output2.NbIO$IOColorPrintImpl.print(NbIO.java:571)
   at org.openide.windows.IOColorPrint.print(IOColorPrint.java:108)
Comment 1 Vladimir Voskresensky 2016-02-15 13:35:09 UTC
Created attachment 158505 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2016-02-15 13:46:50 UTC
Created attachment 158506 [details]
stacktrace

print in output
Comment 3 Vladimir Voskresensky 2016-02-15 16:13:43 UTC
plugin wrote "" (empty) string, so Exception