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.
In the FFJ builds, the persistence module adds an action directly to the java data loader's menu. Right clicking on the colorpicker/ColorPreview java file in the build from 11/16 is fine, but doing the same thing from an evening build on 11/19 causes a NPE. The stack trace is attached, but the interesting line is at org.openide.util.actions.CookieAction.enable(CookieAction.java:102) which has the code listener.setNodes(activatedNodes); CookieAction.java changed on 11/19 and the cvs commit message for that revision (1.19) mentions cleanup of listener handling, so I suspect the persistence module has exposed a case where listener is not properly initialized after the cleanup.
Created attachment 3503 [details] stack trace
CookieAction cannot be at fault here. The listener field is created in CookieAction.initialize() method and never changes. Very likely some subclass overrides this method but forgets to call super.initialize() or something similar.
This is actually a core issue and has been fixed by Jesse's fix for issue 18017.
Marking as fixed as per earlier comments.
I doubt this is a duplicate of issue 18017 fixed in 1.20.2.1, but anyway 1.20 should have fixed this.
verified in 011129_2
Just making a link between the two bug #s. BTW the problem here was that enable(Node[]), normally called *by* CookieAction, was here called from other code, without the action having been first initialized. Unusual but not specifically prohibited. The fix for #18017 rolls back 1.20 and fixes the same apparent problem in a better way which covers other scenarios.
Resolved for 3.4.x or earlier, no new info since then -> closing.