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 244444 - NullPointerException at org.netbeans.modules.cnd.modelui.switcher.CodeAssistanceSubmenuAction$LazyPopupMenu.getPopupMenu
Summary: NullPointerException at org.netbeans.modules.cnd.modelui.switcher.CodeAssista...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 17:22 UTC by Exceptions Reporter
Modified: 2014-06-04 15:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209652


Attachments
stacktrace (4.11 KB, text/plain)
2014-05-12 17:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-05-12 17:22:05 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 7

User Comments:
GUEST: Rightclick on C/C++ project throws this error instead of showing the rightclickmenu. I tried to compile after copy/pasting code to a preexisting file which failed because of the missing -std=c++11 parameter.. Now there seems to be no way to set it...? It previously complained that the VCC4N plugin (which is supposed to make it easy to use the ms vcpp compiler in netbeans) needs to update a kit-/toolchain which it couldn't do so i uninstalled/removed it and restarted but the error persisted.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.modelui.switcher.CodeAssistanceSubmenuAction$LazyPopupMenu.getPopupMenu(CodeAssistanceSubmenuAction.java:107)
   at com.jidesoft.plaf.vsnet.VsnetMenuUI.installListeners(VsnetMenuUI.java:0)
   at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.installUI(VsnetMenuItemUI.java:0)
   at javax.swing.JComponent.setUI(JComponent.java:663)
   at javax.swing.AbstractButton.setUI(AbstractButton.java:1810)
   at javax.swing.JMenuItem.setUI(JMenuItem.java:241)
Comment 1 Exceptions Reporter 2014-05-12 17:22:08 UTC
Created attachment 147233 [details]
stacktrace
Comment 2 Alexander Simon 2014-05-13 15:06:25 UTC
Please file a bug against jidesoft.
It seems virtual method "getPopupMenu()" is called in the constructor of the class LazyPopupMenu.
It is a bug. VsnetMenuUI should not call virtual method in constructor.
Comment 3 Quality Engineering 2014-05-14 02:04:57 UTC
Integrated into 'main-silver', will be available in build *201405140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/918bb38fea2b
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around Bug 244444 NullPointerException at org.netbeans.modules.cnd.modelui.switcher.CodeAssistanceSubmenuAction$LazyPopupMenu.getPopupMenu
Comment 4 Quality Engineering 2014-06-04 15:25:18 UTC
Integrated into 'releases/release80', will be available in build *201406041415* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/bb9f0935c360
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around Bug 244444 NullPointerException at org.netbeans.modules.cnd.modelui.switcher.CodeAssistanceSubmenuAction$LazyPopupMenu.getPopupMenu
(transplanted from 918bb38fea2b098245a3b73d264a4b4695005937)