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 248319 - NullPointerException at org.netbeans.modules.form.palette.PaletteUtils.getCategoryNodes
Summary: NullPointerException at org.netbeans.modules.form.palette.PaletteUtils.getCat...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords: 81_HR_FIX
: 248258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-31 15:06 UTC by alfikr1
Modified: 2015-10-14 15:29 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 210017


Attachments
stacktrace (4.02 KB, text/plain)
2014-10-31 15:06 UTC, alfikr1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alfikr1 2014-10-31 15:06:34 UTC
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)
Comment 1 alfikr1 2014-10-31 15:06:36 UTC
Created attachment 150193 [details]
stacktrace
Comment 2 Tomas Pavek 2015-10-02 09:27:48 UTC
*** Bug 248258 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Pavek 2015-10-02 09:36:49 UTC
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.
Comment 4 Tomas Pavek 2015-10-02 12:43:30 UTC
Applied a workaround that should help, though not able to verify. The workaround is simple and safe.
Comment 5 Tomas Pavek 2015-10-02 12:44:05 UTC
http://hg.netbeans.org/jet-main/rev/0ad8e2d4038a
Comment 6 Jiri Kovalsky 2015-10-02 13:24:58 UTC
OK, the fix seems safe. Please integrate the fix to release81 branch.
Comment 7 Quality Engineering 2015-10-03 02:59:54 UTC
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
Comment 8 Tomas Pavek 2015-10-05 12:42:14 UTC
Transplanted to release81: http://hg.netbeans.org/releases/rev/1a52d29d39c5
Comment 9 Jiri Prox 2015-10-14 15:29:08 UTC
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