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 136277 - NPE when typing in editor
Summary: NPE when typing in editor
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-02 15:42 UTC by Jiri Prox
Modified: 2008-11-28 17:19 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 Jiri Prox 2008-06-02 15:42:26 UTC
Product Version: NetBeans IDE Dev (Build 20080602042246)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)


NPE occurred after each character typed in XML editor


java.lang.NullPointerException
	at org.netbeans.modules.xslt.core.text.completion.XSLTCompletionQuery.getXslSourceEditor(XSLTCompletionQuery.java:163)
	at org.netbeans.modules.xslt.core.text.completion.XSLTCompletionQuery.prepareQuery(XSLTCompletionQuery.java:154)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.performQuery(AsyncCompletionTask.java:171)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.query(AsyncCompletionTask.java:127)
	at org.netbeans.modules.editor.completion.CompletionImpl.queryResultSets(CompletionImpl.java:1501)
	at org.netbeans.modules.editor.completion.CompletionImpl.access$300(CompletionImpl.java:99)
	at org.netbeans.modules.editor.completion.CompletionImpl$2.actionPerformed(CompletionImpl.java:216)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Comment 1 Sergey Lunegov 2008-06-02 15:58:29 UTC
Alex, please look ASAP.
Comment 2 _ alexpetrov 2008-06-02 19:50:12 UTC
The issue has been fixed: 
http://hg.netbeans.org/main?cmd=changeset;node=6715aba99526.

Please verify on NB build being equal or later than 080306...
Comment 3 _ alexpetrov 2008-06-02 19:56:33 UTC
Oh, excuse me, please...
NB build 20080603...
Comment 4 Jiri Prox 2008-06-03 08:23:10 UTC
similar exception is now being logged only as Info -> verified


Product Version: NetBeans IDE Dev (Build 20080603031252)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)
Comment 5 Quality Engineering 2008-11-28 17:19:20 UTC
Integrated into 'main-golden', will be available in build *200811281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f4c7a1600502
User: Milos Kleint <mkleint@netbeans.org>
Log: #136277 move customizer registration to the same place as the lookup registration is, to prevent NPe when the bridge module is not accessbile for some reason.