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.
There could be experienced NPE if called getHelpCtx method on CloneableEditor component, which document was either not loaded yet, or closed already, i.e. its support kit variable was null. See the attachment for suggested fix.
Created attachment 22407 [details] Edited diff of suggested patch
Also a top of stack trace of the NPE we got: java.lang.NullPointerException at org.openide.util.HelpCtx.findHelp(HelpCtx.java:192) at org.openide.text.CloneableEditor.getHelpCtx(CloneableEditor.java:118) ...
Fixed in 4.2: openide/text/src/org/openide/text/CloneableEditor.java,v1.3 Anyway, who is calling the method in the described situation?
It was not experienced in NB IDE, but in our product. And even in that caes, it wasn't reproducible. I just guess it could be some race condition with our special help impl. Anyway I think it is always good to make the openide more robust.
The fix was backported to release41_fixes branch. /cvs/openide/src/org/openide/text/Attic/CloneableEditor.java new revision: 1.82.14.1; previous revision: 1.82