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 182448 - NullPointerException at org.netbeans.modules.applemenu.CtrlClickHack.eventDispatched
Summary: NullPointerException at org.netbeans.modules.applemenu.CtrlClickHack.eventDis...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
: 181553 182763 190251 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-21 13:18 UTC by arcnor
Modified: 2010-09-21 11:18 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 166748


Attachments
stacktrace (1.84 KB, text/plain)
2010-03-21 13:18 UTC, arcnor
Details
stacktrace (1.84 KB, text/plain)
2010-03-24 09:36 UTC, David Strupl
Details
stacktrace (1.84 KB, text/plain)
2010-03-24 09:57 UTC, Jaromir Uhrik
Details
org-netbeans-modules-applemenu.jar with a fix (40.96 KB, application/octet-stream)
2010-03-24 13:29 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arcnor 2010-03-21 13:18:31 UTC
Build: NetBeans IDE Dev (Build 201003050200)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X

User Comments:
arcnor: Closing a file




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.applemenu.CtrlClickHack.eventDispatched(CtrlClickHack.java:85)
   at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2353)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2245)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2244)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2244)
   at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2244)
Comment 1 arcnor 2010-03-21 13:18:39 UTC
Created attachment 95498 [details]
stacktrace
Comment 2 David Strupl 2010-03-24 09:36:21 UTC
Created attachment 95645 [details]
stacktrace
Comment 3 David Strupl 2010-03-24 09:39:09 UTC
Very annoying --> P2. After closing a file the IDE becomes unusable.
Comment 4 Jaromir Uhrik 2010-03-24 09:57:13 UTC
Created attachment 95655 [details]
stacktrace

Closed j2se project and the exception appeared...
Comment 5 Antonin Nebuzelsky 2010-03-24 13:29:42 UTC
Created attachment 95676 [details]
org-netbeans-modules-applemenu.jar with a fix

Can you test with the attached org-netbeans-modules-applemenu.jar ?
Comment 6 David Strupl 2010-03-24 13:59:07 UTC
With the patch I am getting the following exception (on closing editor window): Milo, can you pleas have a look? Thanks.

java.lang.AssertionError
	at org.netbeans.modules.editor.lib2.view.ViewBuilder.<init>(ViewBuilder.java:125)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:420)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:452)
	at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:194)
	at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.highlightChanged(HighlightsViewFactory.java:226)
	at org.netbeans.spi.editor.highlighting.support.AbstractHighlightsContainer.fireHighlightsChange(AbstractHighlightsContainer.java:110)
	at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.access$100(CompoundHighlightsContainer.java:64)
	at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer$2.run(CompoundHighlightsContainer.java:303)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1379)
	at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.layerChanged(CompoundHighlightsContainer.java:301)
	at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.access$400(CompoundHighlightsContainer.java:64)
	at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer$LayerListener.highlightChanged(CompoundHighlightsContainer.java:481)
	at org.netbeans.spi.editor.highlighting.support.AbstractHighlightsContainer.fireHighlightsChange(AbstractHighlightsContainer.java:110)
	at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.updateLineInfo(CaretBasedBlockHighlighting.java:197)
	at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.propertyChange(CaretBasedBlockHighlighting.java:157)
	at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:188)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
	at java.awt.Component.firePropertyChange(Component.java:8213)
	at org.openide.text.QuietEditorPane.firePropertyChange(QuietEditorPane.java:204)
	at javax.swing.text.JTextComponent.setCaret(JTextComponent.java:585)
	at org.openide.text.QuietEditorPane.setCaret(QuietEditorPane.java:227)
	at org.netbeans.editor.BaseTextUI.uninstallUI(BaseTextUI.java:279)
	at javax.swing.JComponent.setUI(JComponent.java:639)
	at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
	at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:332)
	at org.netbeans.editor.BaseKit.deinstall(BaseKit.java:830)
	at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:1091)
	at org.openide.text.CloneableEditor.componentClosed(CloneableEditor.java:820)
	at org.openide.windows.WindowManager.componentCloseNotify(WindowManager.java:315)
Comment 7 Antonin Nebuzelsky 2010-03-24 14:04:20 UTC
Fixed this one. Please file the other exception separately.

http://hg.netbeans.org/core-main/rev/ae9b92b45636
Comment 8 Antonin Nebuzelsky 2010-03-24 14:06:50 UTC
BTW, the other exception already filed as issue #182625.
Comment 9 Quality Engineering 2010-03-25 05:56:10 UTC
Integrated into 'main-golden', will be available in build *201003250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ae9b92b45636
User: Antonin Nebuzelsky <anebuzelsky@netbeans.org>
Log: #182448: NPE, need to test for null
Comment 10 Stanislav Aubrecht 2010-03-26 10:45:37 UTC
*** Bug 182763 has been marked as a duplicate of this bug. ***
Comment 11 Stanislav Aubrecht 2010-09-10 14:38:44 UTC
*** Bug 190251 has been marked as a duplicate of this bug. ***
Comment 12 Stanislav Aubrecht 2010-09-21 11:18:17 UTC
*** Bug 181553 has been marked as a duplicate of this bug. ***