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 241129 - javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=96423
Summary: javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=96423
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-29 16:25 UTC by aquaglia
Modified: 2018-01-29 10:32 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203421


Attachments
stacktrace (2.65 KB, text/plain)
2014-01-29 16:25 UTC, aquaglia
Details
stacktrace (2.65 KB, text/plain)
2014-02-04 14:49 UTC, stefan79
Details
stacktrace (2.65 KB, text/plain)
2014-04-23 14:41 UTC, Maksim Khramov
Details
stacktrace (2.65 KB, text/plain)
2015-04-08 15:27 UTC, aldobrucale
Details
stacktrace (2.90 KB, text/plain)
2016-05-05 13:42 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aquaglia 2014-01-29 16:25:26 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
GUEST: trying to edit the file, got a popup that it's locked, then tried to cancel background scanning of project

aquaglia: Java editing during debugging

GUEST: save file

GUEST: during control+Z

GUEST: Typing a line of code with a string concatenated by + in a java file




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=96423
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetNonNegative(EditorDocumentContent.java:270)
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetInContent(EditorDocumentContent.java:284)
   at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.createPosition(EditorDocumentContent.java:198)
   at javax.swing.text.AbstractDocument.createPosition(AbstractDocument.java:831)
   at org.netbeans.modules.editor.java.JavaBracesMatcher$1.run(JavaBracesMatcher.java:330)
   at org.netbeans.modules.editor.java.JavaBracesMatcher$1.run(JavaBracesMatcher.java:268)
Comment 1 aquaglia 2014-01-29 16:25:28 UTC
Created attachment 144550 [details]
stacktrace
Comment 2 stefan79 2014-02-04 14:49:16 UTC
Created attachment 144783 [details]
stacktrace

Exception occured while editing a Java-File.
Comment 3 Maksim Khramov 2014-04-23 14:41:47 UTC
Created attachment 146913 [details]
stacktrace

Editing java code
Comment 4 Exceptions Reporter 2014-07-23 15:22:30 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=203421
Comment 5 aldobrucale 2015-04-08 15:27:26 UTC
Created attachment 153097 [details]
stacktrace

noticed later
Comment 6 javydreamercsw 2016-05-05 13:42:14 UTC
Created attachment 159556 [details]
stacktrace

Hard to tell when it happened.