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 269599

Summary: ArrayIndexOutOfBoundsException: 1 while editing scripts inside html pages
Product: editor Reporter: sbaruzza
Component: LexerAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description sbaruzza 2017-01-19 10:44:56 UTC
Created attachment 163429 [details]
IDE log

Overview: 
Editing html templates inside a script tag in an html page will often generate a lexer exception. 

Steps to reproduce:
I could not find a set of step to reproduce this bug reliably. In the latest occurrence I could not type anything after trying to type a slash for a </div> tag in a ~80 lines template.

Actual results:
Until I deleted the slash any character typed would generate an exception.

Expected results:
Being able to continue editing

Build date and hardware:
Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_111; Java HotSpot(TM) 64-Bit Server VM 25.111-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_111-b14
System: Linux version 4.4.0-57-generic running on amd64; UTF-8; en_US (nb)