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 252738 - IllegalStateException: javax.swing.text.BadLocationException: Invalid offset=5521 > (docLen+1)=5519
Summary: IllegalStateException: javax.swing.text.BadLocationException: Invalid offset=...
Status: RESOLVED WONTFIX
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:
Depends on:
Blocks:
 
Reported: 2015-06-02 07:35 UTC by malakim
Modified: 2015-06-08 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215796


Attachments
stacktrace (3.36 KB, text/plain)
2015-06-02 07:35 UTC, malakim
Details

Note You need to log in before you can comment on or make changes to this bug.
Description malakim 2015-06-02 07:35:16 UTC
Build: NetBeans IDE 8.0.2 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
GUEST: Coding HTML5 application, noticed red balloon icons on the bottom right corner.

malakim: Editing Java files




Stacktrace: 
java.lang.IllegalStateException: javax.swing.text.BadLocationException: Invalid offset=5521 > (docLen+1)=5519
   at org.netbeans.editor.BaseCaret.moveDot(BaseCaret.java:1331)
   at org.netbeans.editor.BaseCaret.moveDot(BaseCaret.java:1279)
   at org.netbeans.editor.BaseKit$EndAction.actionPerformed(BaseKit.java:2815)
   at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
   at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEditorAction.java:462)
   at org.netbeans.editor.BaseKit$KitCompoundAction.actionPerformed(BaseKit.java:1691)
Comment 1 malakim 2015-06-02 07:35:18 UTC
Created attachment 154004 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-06-08 13:26:30 UTC
This is almost impossible to happen, since offset is doclen and document has readLock. There are other exceptions in logs, I think they are culprits of this.