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 162228 - javax.swing.text.BadLocationException: Invalid offset=-1 not within <0, 56>
Summary: javax.swing.text.BadLocationException: Invalid offset=-1 not within <0, 56>
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Strupl
Depends on:
Reported: 2009-04-08 15:11 UTC by Exceptions Reporter
Modified: 2009-04-27 16:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 145200

stacktrace (2.99 KB, text/plain)
2009-04-08 15:11 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-04-08 15:11:26 UTC
Build: NetBeans IDE Dev (Build 200904011705)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments:
tapn2it: starting up net beans

GUEST: running rcov with a functional test that contains shoulda usage... I'm converting tests to use shoulda from straight unit/functional tests... or at least I think I am :-)

speijnik: I was saving a Python file.

GUEST: Just using code coverage feature: Running tests and opening ruby-file. (Not running JRuby)

tapn2it: opening file from projects view

javax.swing.text.BadLocationException: Invalid offset=-1 not within <0, 56>
        at org.netbeans.editor.Utilities.checkOffsetValid(
        at org.netbeans.editor.Utilities.checkOffsetValid(
        at org.netbeans.editor.Utilities.getRowFirstNonWhite(
        at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer$Highlights.<init>(
        at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer$Highlights.<init>(
        at org.netbeans.modules.gsf.codecoverage.CoverageHighlightsContainer.getHighlights(
Comment 1 Exceptions Reporter 2009-04-08 15:11:36 UTC
Created attachment 79743 [details]
Comment 2 Vitezslav Stejskal 2009-04-20 20:27:05 UTC should check for invalid line numbers.
Comment 3 David Strupl 2009-04-27 16:21:45 UTC
Fixed in jet-main by changeset:   128934:b6a9ff75229e