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 198553 - StringIndexOutOfBoundsException: String index out of range: -213
Summary: StringIndexOutOfBoundsException: String index out of range: -213
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 12:36 UTC by Exceptions Reporter
Modified: 2011-05-19 14:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178749


Attachments
stacktrace (3.96 KB, text/plain)
2011-05-12 12:36 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-05-12 12:36:44 UTC
This issue was reported manually by vv159170.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201105070000)
VM: OpenJDK 64-Bit Server VM, 19.0-b09, OpenJDK Runtime Environment, 1.6.0_20-b20
OS: Linux

Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -213
   at java.lang.String.<init>(String.java:225)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.getText(FileBufferFile.java:85)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:1241)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getText(FileImpl.java:115)
   at org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableBase.getText(OffsetableBase.java:141)
   at org.netbeans.modules.cnd.modelutil.CsmDisplayUtilities.getTooltipText(CsmDisplayUtilities.java:246)
Comment 1 Exceptions Reporter 2011-05-12 12:36:48 UTC
Created attachment 108248 [details]
stacktrace
Comment 2 nnnnnk 2011-05-17 15:49:41 UTC
added assertTrue and recovery to constructor.

http://hg.netbeans.org/releases/rev/f7169e4ed345
Comment 3 Alexander Simon 2011-05-18 18:29:24 UTC
Please remove unneeded string concatenation introduced in the fix. It is performance issue.
Comment 4 nnnnnk 2011-05-19 11:27:40 UTC
done
Comment 5 Alexander Simon 2011-05-19 14:48:16 UTC
Thanks.