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 157175 - javax.swing.text.BadLocationException: end=2168 < start=11921
Summary: javax.swing.text.BadLocationException: end=2168 < start=11921
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-01-21 03:34 UTC by gnewton
Modified: 2009-05-06 09:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 30281


Attachments
stacktrace (3.97 KB, text/plain)
2009-01-21 03:35 UTC, gnewton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gnewton 2009-01-21 03:34:50 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows Vista, 6.0, x86

User Comments:
gnewton: trying to do text search in file

gtzabari: Changed editor tabs and started typing

tsromney: Trying to search a document

joshis: I selected a text in a java file and I pressed Ctrl+F to invoke the search

GUEST: I blocked some code and press Ctrl-F

GUEST: I clicked on one of project files in the "Projects" tab to open it

robdaemon: UI was loading an xml file to edit when I hit Command-F to find text

gnewton: trying to do text search in file



Stacktrace: 
javax.swing.text.BadLocationException: end=2168 < start=11921
        at org.netbeans.lib.editor.util.swing.DocumentUtilities.getText(DocumentUtilities.java:328)
        at org.netbeans.modules.editor.lib2.search.DocumentFinder.findBlocks(DocumentFinder.java:292)
        at org.netbeans.modules.editor.lib2.search.EditorFindSupport.getBlocks(EditorFindSupport.java:225)
        at org.netbeans.modules.editor.lib2.highlighting.TextSearchHighlighting$1.run(TextSearchHighlighting.java:145)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1362)
        at org.netbeans.modules.editor.lib2.highlighting.TextSearchHighlighting.fillInTheBag(TextSearchHighlighting.java:135)
Comment 1 gnewton 2009-01-21 03:35:02 UTC
Created attachment 76066 [details]
stacktrace
Comment 2 Alexey Butenko 2009-05-06 08:27:52 UTC
Problem in SearchBar, end position is not set in some cases.
Comment 3 Alexey Butenko 2009-05-06 09:02:28 UTC
changeset 3fa6a836e018 in jet-main