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 102746 - NPE from o.n.lib.lexer.inc.TokenListUpdater.update(TokenListUpdater.java:444)
Summary: NPE from o.n.lib.lexer.inc.TokenListUpdater.update(TokenListUpdater.java:444)
Status: RESOLVED DUPLICATE of bug 101620
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-04-27 12:38 UTC by Tomas Danek
Modified: 2007-04-27 16:13 UTC (History)
2 users (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 Tomas Danek 2007-04-27 12:38:18 UTC
NetBeans Ruby IDE 070427
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Windows XP version 5.1 running on x86
en_US (nbrubyide); Cp1252
--------------------------------------------------------------
- create new ruby project
- Delete content of main.rb: select all (Ctrl+A) and hit delete key

java.lang.NullPointerException
	at org.netbeans.lib.lexer.inc.TokenListUpdater.update(TokenListUpdater.java:444)
	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:1335)
	at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:733)
	at org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:1421)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:263)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
Comment 1 Tomas Danek 2007-04-27 14:18:56 UTC
this NPE and similar IOOBE (also from lexer)  are thrown also during another
usecases - it makes almost impossible to edit *.rhtml && *.rb files -> P1
Comment 2 Miloslav Metelka 2007-04-27 16:13:43 UTC

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