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 247177 - IndexOutOfBoundsException: end=93336 > length()=1
Summary: IndexOutOfBoundsException: end=93336 > length()=1
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 249386 250027 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-16 16:06 UTC by stefan79
Modified: 2015-09-07 11:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211912


Attachments
stacktrace (1.18 KB, text/plain)
2014-09-16 16:06 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2014-09-16 16:06:23 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: Windows 8

User Comments:
stefan79: Exception occured after/while CVS-Updating




Stacktrace: 
java.lang.IndexOutOfBoundsException: end=93336 > length()=1
   at org.netbeans.lib.editor.util.CharSequenceUtilities.checkIndexesValid(CharSequenceUtilities.java:535)
   at org.netbeans.modules.editor.lib2.document.CharContent.subSequence(CharContent.java:95)
   at org.netbeans.lib.editor.util.swing.DocumentUtilities.getText(DocumentUtilities.java:336)
   at org.netbeans.modules.editor.search.DocumentFinder.findBlocks(DocumentFinder.java:312)
   at org.netbeans.modules.editor.search.EditorFindSupport$1.run(EditorFindSupport.java:268)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
Comment 1 stefan79 2014-09-16 16:06:24 UTC
Created attachment 149266 [details]
stacktrace
Comment 2 Milutin Kristofic 2014-10-02 13:42:56 UTC
I decrease level of warning, to be consistent with other parts of code for search. Netbeans will not throw exception dialog, but search will failed when the file is modified during search.

http://hg.netbeans.org/jet-main/rev/e6f3fbdbd55e
Comment 3 Milutin Kristofic 2015-01-09 17:02:20 UTC
*** Bug 249386 has been marked as a duplicate of this bug. ***
Comment 4 Milutin Kristofic 2015-09-07 11:52:10 UTC
*** Bug 250027 has been marked as a duplicate of this bug. ***