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 233386 - javax.swing.text.BadLocationException: Invalid offset=14651 not within <0, 14632>
Summary: javax.swing.text.BadLocationException: Invalid offset=14651 not within <0, 14...
Status: NEW
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Third-party (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: pgebauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-25 08:58 UTC by misterm
Modified: 2016-10-10 10:40 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 202507


Attachments
stacktrace (1.13 KB, text/plain)
2013-07-25 08:58 UTC, misterm
Details
stacktrace (4.62 KB, text/plain)
2013-08-31 11:13 UTC, Exceptions Reporter
Details
stacktrace (3.45 KB, text/plain)
2014-03-12 21:04 UTC, Jesse Glick
Details
stacktrace (3.45 KB, text/plain)
2014-04-03 20:37 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-07-25 08:58:03 UTC
This issue was reported manually by mjanicek.
It already has 3 duplicates 


Build: NetBeans IDE Dev (Build 20130703-4ccc4c622a55)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
zdenek.rod: I deleted text using shift+del.

misterm: .

tnleeuw: After deleting several lines from a Java file, I saved the file. This caused reformatting, and removal of several unused imports.
The cursor was at the very end of the file.
This triggered the exception.




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=14651 not within <0, 14632>
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1347)
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1342)
   at org.netbeans.editor.Utilities.getRowStart(Utilities.java:200)
   at org.netbeans.editor.Utilities.getRowStart(Utilities.java:183)
   at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
   at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97)
Comment 1 misterm 2013-07-25 08:58:05 UTC
Created attachment 137764 [details]
stacktrace
Comment 2 Martin Janicek 2013-07-25 09:01:11 UTC
Reassigning. I don't know where org.netbeans.modules.showtodos belongs.
Comment 3 Exceptions Reporter 2013-08-23 07:28:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=202507
Comment 4 Exceptions Reporter 2013-08-31 11:13:30 UTC
Created attachment 139525 [details]
stacktrace

Inserted html code template at the very beginning of php file. 

Insertion not at the beginning works normally.

Template:

<?php
    
class T extends Tsystem_module {
    
    function controller_main($params = array()) {
        
        
        echo self::view2('self/cj', $view);
    }
        
}
    
    
?>
Comment 5 Jesse Glick 2014-03-12 21:04:10 UTC
Created attachment 145981 [details]
stacktrace

Editing Java sources (major refactoring).
Comment 6 Jesse Glick 2014-04-03 20:37:24 UTC
Created attachment 146528 [details]
stacktrace

Editing Java code. Persistent error badges unaccompanied by lines marked as erroneous.