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 234027 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED INCOMPLETE
Alias: None
Product: utilities
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 14:38 UTC by muellermi
Modified: 2013-08-19 13:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202863


Attachments
stacktrace (3.09 KB, text/plain)
2013-08-06 14:38 UTC, muellermi
Details
stacktrace (3.09 KB, text/plain)
2013-08-06 14:41 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2013-08-06 14:38:28 UTC
Build: NetBeans IDE Dev (Build 201308032300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 8

User Comments:
muellermi: moving mouse from editor window to search results




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1911)
   at org.netbeans.modules.search.TextDetail.getLineTextPart(TextDetail.java:247)
   at org.netbeans.modules.search.TextDetail$DetailNode.appendMarkedTextPrefix(TextDetail.java:696)
   at org.netbeans.modules.search.TextDetail$DetailNode.appendMarkedText(TextDetail.java:679)
   at org.netbeans.modules.search.TextDetail$DetailNode.getShortDescription(TextDetail.java:551)
   at org.openide.explorer.view.NodeRenderDataProvider.getTooltipText(NodeRenderDataProvider.java:120)
Comment 1 muellermi 2013-08-06 14:38:30 UTC
Created attachment 138358 [details]
stacktrace
Comment 2 muellermi 2013-08-06 14:41:12 UTC
Created attachment 138360 [details]
stacktrace

after search
Comment 3 Jaroslav Havlin 2013-08-15 08:46:32 UTC
Please, don't you remember search settings (text to find, type) and matching line that caused the problem. Thank you.
Comment 4 Jaroslav Havlin 2013-08-19 13:28:04 UTC
I haven't been able to reproduce the bug, more info about the search criteria
would be helpful.

At least check the range and try to correct it (and log warning) if it is wrong.
http://hg.netbeans.org/core-main/rev/fc5225f50277

Thanks for reporting.