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
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: .




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=-536863206 not within <0, 26825>
   at org.netbeans.api.editor.document.LineDocumentUtils.checkOffsetValid(LineDocumentUtils.java:420)
   at org.netbeans.api.editor.document.LineDocumentUtils.checkOffsetValid(LineDocumentUtils.java:415)
   at org.netbeans.api.editor.document.LineDocumentUtils.getLineIndex(LineDocumentUtils.java:339)
   at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:563)
   at org.netbeans.modules.editor.hints.AnnotationHolder$11.run(AnnotationHolder.java:1474)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1386)
Comment 1 misterm 2015-10-06 18:22:14 UTC
Created attachment 156568 [details]
stacktrace
Comment 2 Exceptions Reporter 2016-02-02 11:00:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=218772
Comment 3 Exceptions Reporter 2016-02-04 12:49:48 UTC
Created attachment 158371 [details]
stacktrace

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