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 117542 - NPE opening an RHTML file
Summary: NPE opening an RHTML file
Status: RESOLVED DUPLICATE of bug 117509
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-03 00:35 UTC by Torbjorn Norbye
Modified: 2007-10-03 08:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjorn Norbye 2007-10-03 00:35:38 UTC
With a fresh trunk build (as of October 2nd) on both Mac and Linux, if I just open an RHTML file I get this after a
couple of seconds.

java.lang.NullPointerException
	at org.netbeans.modules.languages.features.SemanticHighlightsLayer.getHighlights(SemanticHighlightsLayer.java:75)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:266)
	at
org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:142)
	at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:543)
	at org.netbeans.editor.HighlightingDrawLayer.isActive(HighlightingDrawLayer.java:270)
	at org.netbeans.editor.DrawEngine.drawArea(DrawEngine.java:841)
	at org.netbeans.editor.DrawEngine.drawInternal(DrawEngine.java:1117)
	at org.netbeans.editor.DrawEngine.draw(DrawEngine.java:1023)
	at org.netbeans.editor.DrawEngineLineView.viewToModel(DrawEngineLineView.java:517)
	at org.netbeans.lib.editor.view.GapBoxView.viewToModel(GapBoxView.java:1524)
	at org.netbeans.editor.view.spi.LockView.viewToModel(LockView.java:426)
	at javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1539)
	at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1088)
	at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1061)
	at javax.swing.text.JTextComponent.viewToModel(JTextComponent.java:1418)
	at org.netbeans.editor.BaseKit$PageDownAction.actionPerformed(BaseKit.java:1962)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:266)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2844)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2879)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2807)
	at java.awt.Component.processEvent(Component.java:5815)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4410)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4240)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
	at java.awt.Component.dispatchEventImpl(Component.java:4282)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2429)
	at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Martin Schovanek 2007-10-03 08:37:48 UTC
Probably duplicate of issue #117509

*** This issue has been marked as a duplicate of 117509 ***