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 109935 - NPEs in editor (sometimes just block the editor until closed)
Summary: NPEs in editor (sometimes just block the editor until closed)
Status: RESOLVED DUPLICATE of bug 108889
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-17 00:46 UTC by mklishin
Modified: 2007-07-17 00:57 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 mklishin 2007-07-17 00:46:01 UTC
Every other time I use doo template I get series of NPEs and to get rid of them I have to hit Enter several times.
Sometimes it blocks the editor completely. When I close and open up the editor (not the IDE) again it works fine until I
use that template again.

Here's the backtrace:

java.lang.NullPointerException
	at org.netbeans.lib.lexer.inc.TokenListUpdater.update(TokenListUpdater.java:219)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.textModified(TokenHierarchyOperation.java:277)
	at org.netbeans.spi.lexer.TokenHierarchyControl.textModified(TokenHierarchyControl.java:81)
	at org.netbeans.lib.lexer.inc.DocumentInput.modified(DocumentInput.java:117)
	at org.netbeans.lib.lexer.inc.DocumentInput.removeUpdate(DocumentInput.java:108)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:63)
	at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:243)
	at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1342)
	at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:739)
	at org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:1428)
	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 Torbjorn Norbye 2007-07-17 00:57:51 UTC
Thanks. This one is already filed (several times). I'll see what I can do to speed up resolution.


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