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 255746

Summary: javax.swing.text.BadLocationException: Invalid offset=-536863206 not within <0, 26825>
Product: editor Reporter: misterm <misterm>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: clinuxrulz, lehel, luis.boch, rinkssaliya, terje7601
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218772
Attachments: stacktrace

Description misterm 2015-10-06 18:22:13 UTC
This issue was reported manually by misterm.
It already has 3 duplicates 

Build: NetBeans IDE Dev (Build 20151001-0d7f258dfba2)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26
OS: Windows 8

User Comments:
clinuxrulz: using alt+enter to include an import

GUEST: I don't know what happened.

misterm: .

javax.swing.text.BadLocationException: Invalid offset=-536863206 not within <0, 26825>
   at org.netbeans.api.editor.document.LineDocumentUtils.checkOffsetValid(
   at org.netbeans.api.editor.document.LineDocumentUtils.checkOffsetValid(
   at org.netbeans.api.editor.document.LineDocumentUtils.getLineIndex(
   at org.netbeans.editor.Utilities.getLineOffset(
   at org.netbeans.modules.editor.hints.AnnotationHolder$
   at org.netbeans.editor.BaseDocument.render(
Comment 1 misterm 2015-10-06 18:22:14 UTC
Created attachment 156568 [details]
Comment 2 Exceptions Reporter 2016-02-02 11:00:44 UTC
This bug already has 5 duplicates 
Comment 3 Exceptions Reporter 2016-02-04 12:49:48 UTC
Created attachment 158371 [details]

I try to delete the <g:submitButton> and I can't