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 271306 - javax.swing.text.BadLocationException: Invalid offset=10 > (docLen+1)=8
Summary: javax.swing.text.BadLocationException: Invalid offset=10 > (docLen+1)=8
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
Depends on:
Reported: 2017-08-16 11:32 UTC by Exceptions Reporter
Modified: 2017-08-16 11:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230054

stacktrace (3.80 KB, text/plain)
2017-08-16 11:32 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-08-16 11:32:21 UTC
This bug was originally marked as duplicate of bug 245776, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201705191307)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.144-b01, Java(TM) SE Runtime Environment, 1.8.0_144-b01
OS: Windows 10

User Comments:

javax.swing.text.BadLocationException: Invalid offset=10 > (docLen+1)=8
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetInContent(
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.createPosition(
   at javax.swing.text.AbstractDocument.createPosition(
   at org.netbeans.modules.editor.indent.TaskHandler.setCaretOffset(
   at org.netbeans.modules.editor.indent.IndentImpl.reindent(
   at org.netbeans.modules.editor.indent.api.Indent.reindent(
Comment 1 Exceptions Reporter 2017-08-16 11:32:23 UTC
Created attachment 164959 [details]