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 229772 - javax.swing.text.BadLocationException: Invalid offset=414 not within <0, 385>
Summary: javax.swing.text.BadLocationException: Invalid offset=414 not within <0, 385>
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-15 11:23 UTC by zdenek.rod
Modified: 2013-05-15 11:47 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200659


Attachments
stacktrace (1.13 KB, text/plain)
2013-05-15 11:23 UTC, zdenek.rod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zdenek.rod 2013-05-15 11:23:16 UTC
This issue was reported manually by jhavlin.
It already has 55 duplicates 


Build: NetBeans IDE Dev (Build 201305102300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Windows 7

User Comments:
452: ctrl+x .xhtml

452: ctrl+x

GUEST: used undo on some shitty .tpl file - supposed to be smarty template

zdenek.rod: I modified wicket markup file.

452: ctrl+x

zdenek.rod: I deleted one line in css file using shift+del.

zdenek.rod: I deletet accidently end class bracket using shift + del.

rozwell: deleting like using shift + delete

alied: deleting lines with Ctrl+Del

zdenek.rod: I deleted property (property not exist in java) from spring file using shift+del.

GUEST: just typing

drazisil: print_r($) is a PHP file

zdenek.rod: I deleted line using shift+del in spring file.

GUEST: just typing

eduardoelias: programming php

salamander: deleting a string

452: create java class (.java), del template header, ctrl+x in last line  ( } - to last line)

alied: reverting local changes via the left margin SVN modified/added lines marks.




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=414 not within <0, 385>
   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 zdenek.rod 2013-05-15 11:23:19 UTC
Created attachment 134460 [details]
stacktrace
Comment 2 Jaroslav Havlin 2013-05-15 11:47:03 UTC
http://hg.netbeans.org/main/contrib/rev/9a734af42ffe
Fixed.