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.
Product Version: NetBeans IDE Dev (Build 201305032300) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Windows 7 version 6.1 running on amd64; Cp1251; en_US (nb) No opened projects in IDE. All windows reset to default state. Click on View menu throws exception java.lang.NullPointerException: component cannot be null at org.netbeans.modules.editor.fold.FoldHierarchyExecution.getOrCreateFoldExecution(FoldHierarchyExecution.java:205) at org.netbeans.modules.editor.fold.FoldHierarchyExecution.getOrCreateFoldHierarchy(FoldHierarchyExecution.java:200) at org.netbeans.api.editor.fold.FoldHierarchy.get(FoldHierarchy.java:148) at org.netbeans.modules.editor.NbEditorKit$GenerateFoldPopupAction.addAction(NbEditorKit.java:737) at org.netbeans.modules.editor.NbEditorKit$GenerateFoldPopupAction.getPopupMenuItem(NbEditorKit.java:792) at org.netbeans.modules.editor.NbCodeFoldingAction$CodeFoldsMenu.getPopupMenu(NbCodeFoldingAction.java:166) at org.netbeans.modules.editor.NbCodeFoldingAction$CodeFoldsMenu.synchMenuPresenters(NbCodeFoldingAction.java:132) at org.openide.awt.DynaMenuModel.checkSubmenu(DynaMenuModel.java:191) at org.openide.awt.MenuBar$LazyMenu.setPopupMenuVisible(MenuBar.java:729) at javax.swing.JPopupMenu.menuSelectionChanged(JPopupMenu.java:1471) at javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:118) at javax.swing.plaf.basic.BasicMenuUI.appendPath(BasicMenuUI.java:222) at javax.swing.plaf.basic.BasicMenuUI.access$200(BasicMenuUI.java:49) at javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:461) at javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mousePressed(BasicMenuUI.java:342) at java.awt.Component.processMouseEvent(Component.java:6502) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:729) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:688) at java.awt.EventQueue$3.run(EventQueue.java:686) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:702) at java.awt.EventQueue$4.run(EventQueue.java:700) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:699) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) All menu items under this menu are unavailable.
This issue can also reproduced the following way. * start NB, close all documents * select two arbitrary files in the project view and compare them to each other (via Tools-> Diff) * try to open the Mainmenu entry "View" -> Exception is thrown!
(In reply to comment #1) > This issue can also reproduced the following way. > > * start NB, close all documents > * select two arbitrary files in the project view and compare them to each other > (via Tools-> Diff) > * try to open the Mainmenu entry "View" -> Exception is thrown! @ NB 7.4.dev 201305042300
*** Bug 229409 has been marked as a duplicate of this bug. ***
Fixed in http://hg.netbeans.org/jet-main/rev/09c24b4954ff
*** Bug 229345 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201305082300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/09c24b4954ff User: Svata Dedic <sdedic@netbeans.org> Log: #229349: handle null JComponent target, disable actions