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.
Summary: | javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=20091 | ||
---|---|---|---|
Product: | editor | Reporter: | legitalk |
Component: | CSL (API & infrastructure) | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | legitalk, marfous |
Priority: | P1 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 220654 |
Attachments: |
stacktrace
stacktrace |
Description
legitalk
2016-03-07 12:23:40 UTC
Created attachment 158765 [details]
stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=220654 Created attachment 161550 [details]
stacktrace
Closed all documents in the IDE
IMHO GsfCompletionProvider.java:722 can be reached with caretOffset == -1 since JavaCompletionQuery(int queryType, int caretOffset) constructor is has usages that pass -1. Thank you Mila, I added one more condition. http://hg.netbeans.org/jet-main/rev/d7dc808bbf21 Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/d7dc808bbf21 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #258271 - javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=20091 |