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 Dev (Build 201211010001) VM: Java HotSpot(TM) Client VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05 OS: Windows XP User Comments: lehel: NetBeans ide should contain Profile menu, Tools -> Options dialog should contain Profiler tab in Miscellaneous section. But it did not contain. This error appeared running the Profile from toolbar. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.profiler.stp.SelectProfilingTask.selectAttachProfilerTask(SelectProfilingTask.java:333) at org.netbeans.modules.profiler.stp.SelectProfilingTask$ConfiguratorProvider.configureAttachProfilerTask(SelectProfilingTask.java:167) at org.netbeans.modules.profiler.api.TaskConfigurator.configureAttachProfilerTask(TaskConfigurator.java:114) at org.netbeans.modules.profiler.actions.ProfilingSupport.selectTaskForAttach(ProfilingSupport.java:165) at org.netbeans.modules.profiler.actions.ProfilingSupport$1.run(ProfilingSupport.java:245) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
Created attachment 126925 [details] stacktrace
Profiler options are in Options | Java | Profiler. If you can't see the Profile menu, your IDE is probably incorrectly installed - make sure you're running with a clean user&cache directory. The exception was thrown from Attach Profiler action, not Profile action as mentioned. I assume you've invoked Profile or Attach Profiler before. Works fine on my side, not reproducible. Please provide detailed steps if you happen to get the exception again. Implemented a workaround to prevent the NPE, can't do more without a reproducible test case: http://hg.netbeans.org/profiler-main/rev/da76d8aa2fa7
Integrated into 'main-golden', will be available in build *201211060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/da76d8aa2fa7 User: Jiri Sedlacek <jis@netbeans.org> Log: Bugfix #221267 - prevent the NPE probably caused by incorrect synchronization of SPT.cleanup(), not reproducible