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.
Build: NetBeans IDE 8.0.1 (Build 201408251540) VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26 OS: Windows 8 User Comments: GUEST: tentando colocar incon GUEST: Error GUEST: Right Click on any JPanel does not work alfikr1: can't show popup on right click GUEST: ?? ?????????? ??????????? ???? ?? ????? GUEST: <Please provide a description of the problem or the steps to reproduce>mouse problem when run the project GUEST: Just a right click over a new panel in design view -> navigator, JPanel right click Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.palette.PaletteUtils.getCategoryNodes(PaletteUtils.java:517) at org.netbeans.modules.form.palette.PaletteUtils.getCategoryNodes(PaletteUtils.java:493) at org.netbeans.modules.form.palette.PaletteMenuView.getSubNodes(PaletteMenuView.java:154) at org.netbeans.modules.form.palette.PaletteMenuView.fillSubMenu(PaletteMenuView.java:128) at org.netbeans.modules.form.palette.PaletteMenuView.getPopupMenu(PaletteMenuView.java:118) at com.jidesoft.plaf.vsnet.VsnetMenuUI.installListeners(VsnetMenuUI.java:0)
Created attachment 150193 [details] stacktrace
*** Bug 248258 has been marked as a duplicate of this bug. ***
As explained in bug 245600, this is a bug in com.jidesoft.plaf.vsnet.VsnetMenuUI, which is some 3rd party garbage, not standard part of NetBeans IDE. It breaks into every menu item creation and calls getPopupMenu on not yet initialized menu. Asking for popup menu creation in setUI is evil. Given the high number of reports and pretty serious impact (unusable GUI builder) this probably deserves a workaround.
Applied a workaround that should help, though not able to verify. The workaround is simple and safe.
http://hg.netbeans.org/jet-main/rev/0ad8e2d4038a
OK, the fix seems safe. Please integrate the fix to release81 branch.
Integrated into 'main-silver', will be available in build *201510030002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/0ad8e2d4038a User: Tomas Pavek <tpavek@netbeans.org> Log: #248319: don't try to fill popup menu if called from super constructor when we don't know yet what to fill
Transplanted to release81: http://hg.netbeans.org/releases/rev/1a52d29d39c5
verified Product Version: NetBeans IDE 8.1 RC2 (Build 201510122201) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.1rc2 Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.1rc2