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 141412 - [nb65] IndexOutOfBoundsException: index=-1 < 0
Summary: [nb65] IndexOutOfBoundsException: index=-1 < 0
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 20:01 UTC by Ivan Sidorkin
Modified: 2009-12-17 04:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 72546


Attachments
stacktrace (1.45 KB, text/plain)
2008-09-12 20:11 UTC, marchy
Details
stacktrace (1.45 KB, text/plain)
2008-09-12 20:14 UTC, marchy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2008-07-23 20:01:39 UTC
Build: NetBeans IDE Dev (Build 200807030007)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.4, i386
User comments: Netbeans was scanning a juge project, actually nbbuil for nb65 and at the same time I was tryed to work
on my own project.
STACKTRACE: (first 10 lines)
javax.swing.text.BadLocationException: Invalid offset=72797 not within <0, 72784>
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1332)
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1327)
        at org.netbeans.editor.Utilities.getRowEnd(Utilities.java:269)
        at org.netbeans.modules.javascript.hints.StrictWarning.limitErrorToLine(StrictWarning.java:270)
        at org.netbeans.modules.javascript.hints.StrictWarning.run(StrictWarning.java:227)
        at org.netbeans.modules.javascript.hints.infrastructure.JsHintsProvider.applyErrorRules(JsHintsProvider.java:243)
        at org.netbeans.modules.javascript.hints.infrastructure.JsHintsProvider.computeErrors(JsHintsProvider.java:86)
        at org.netbeans.modules.gsf.GsfTaskProvider$Work$1.run(GsfTaskProvider.java:304)
        at org.netbeans.modules.gsf.GsfTaskProvider$Work$1.run(GsfTaskProvider.java:282)
        at org.netbeans.napi.gsfret.source.Source.runUserActionTask(Source.java:467)
Comment 1 Exceptions Reporter 2008-09-05 10:35:23 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=72546
Comment 2 marchy 2008-09-12 20:11:39 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=8637 not within <0, 8618>
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1348)
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1343)
        at org.netbeans.editor.Utilities.getRowEnd(Utilities.java:269)
        at org.netbeans.modules.javascript.hints.StrictWarning.limitErrorToLine(StrictWarning.java:276)
        at org.netbeans.modules.javascript.hints.StrictWarning.run(StrictWarning.java:233)
        at org.netbeans.modules.javascript.hints.infrastructure.JsHintsProvider.applyErrorRules(JsHintsProvider.java:243)
Comment 3 marchy 2008-09-12 20:11:49 UTC
Created attachment 69771 [details]
stacktrace
Comment 4 marchy 2008-09-12 20:13:51 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=8637 not within <0, 8618>
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1348)
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1343)
        at org.netbeans.editor.Utilities.getRowEnd(Utilities.java:269)
        at org.netbeans.modules.javascript.hints.StrictWarning.limitErrorToLine(StrictWarning.java:276)
        at org.netbeans.modules.javascript.hints.StrictWarning.run(StrictWarning.java:233)
        at org.netbeans.modules.javascript.hints.infrastructure.JsHintsProvider.applyErrorRules(JsHintsProvider.java:243)
Comment 5 marchy 2008-09-12 20:14:01 UTC
Created attachment 69772 [details]
stacktrace
Comment 6 Exceptions Reporter 2008-09-15 10:22:48 UTC
This issue has already 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=72546
Comment 7 Torbjorn Norbye 2008-09-15 18:34:12 UTC
Fixed in changeset 2dfd96e03db4
Comment 8 Ivan Sidorkin 2009-12-17 04:33:54 UTC
verified