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 122031 - [60cat] Messing with the faces-config.xml is generating a NPE
Summary: [60cat] Messing with the faces-config.xml is generating a NPE
Status: RESOLVED DUPLICATE of bug 121964
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-15 16:35 UTC by racx
Modified: 2007-11-16 08:37 UTC (History)
1 user (show)

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 racx 2007-11-15 16:35:03 UTC
[ BUILD # : 200711141200 ]
[ JDK VERSION : 1.6.0_02 ]

Just open the xonfig-faces.xml and try to add some code in it.

It is generating that error:

java.lang.NullPointerException
	at
org.netbeans.api.lexer.Language$Accessor.languageOperation(Language.ja
va:581)
	at
org.netbeans.lib.lexer.TokenHierarchyOperation.languagePaths(TokenHier
archyOperation.java:481)
	at
org.netbeans.api.lexer.TokenHierarchy.languagePaths(TokenHierarchy.jav
a:293)
	at
org.netbeans.modules.editor.indent.TaskHandler.collectTasks(TaskHandle
r.java:143)
	at
org.netbeans.modules.editor.indent.IndentImpl.indentLock(IndentImpl.ja
va:131)
	at
org.netbeans.modules.editor.indent.FormatterImpl.indentLock(FormatterI
mpl.java:81)
	at
org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.
java:1141)
	at
org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:290)
	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.jav
a:1848)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardF
ocusManager.java:693)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboa
rdFocusManager.java:958)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboa
rdFocusManager.java:830)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocu
sManager.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(EventDispatchThrea
d.java:273)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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 Petr Pisl 2007-11-15 17:02:16 UTC
The exception is not from web code. It comes from language infrastructure -> reassigning 
Comment 2 racx 2007-11-15 17:09:21 UTC
This is generated when pressing "Enter"
Comment 3 Jan Jancura 2007-11-15 20:50:15 UTC
ale ale
Comment 4 racx 2007-11-15 23:37:42 UTC
Hi

This is happening with web.xml, so I presume any confguration file.
Comment 5 Jiri Prox 2007-11-16 08:37:56 UTC

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