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 117783

Summary: NullPointerException from SemanticHighlightsLayer
Product: obsolete Reporter: Jiri Skrivanek <jskrivanek>
Component: languagesAssignee: issues@obsolete <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: pjiricka
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Entire stack trace.

Description Jiri Skrivanek 2007-10-04 14:08:22 UTC
NullPointerException from SemanticHighlightsLayer is repeatedly thrown and it freezes IDE. To reproduce:

- create java application
- create new HTML file from template
- change something in HTML file (e.g. type enter) and the exception is thrown in neverending loop

INFO [org.netbeans.editor.HighlightingDrawLayer]: Can't reset line views: range = [0, 315]
java.lang.NullPointerException
	at org.netbeans.modules.languages.features.SemanticHighlightsLayer.getHighlights(SemanticHighlightsLayer.java:141)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:288)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:164)
	at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:565)
Comment 1 Jiri Skrivanek 2007-10-04 14:08:50 UTC
Created attachment 50180 [details]
Entire stack trace.
Comment 2 Jan Jancura 2007-10-04 15:30:41 UTC
its already fixed in trunk.
Comment 3 Jiri Skrivanek 2007-10-05 07:22:34 UTC
Verified.