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.
Profiler 070425 NetBeans IDE Dev (Build 070426) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Windows XP version 5.1 running on x86 ru_RU (nb); Cp1251 Steps to reproduce: - Open any project in IDE - Open some of JDK sources, for example, javax.swing.plaf.metal.MetalRootPaneUI - Open Profiling Points window - Click Add Profiling Point button - Click Next twice - RESULT: NPE is thrown java.lang.NullPointerException at org.netbeans.modules.profiler.ppoints.Utils.getCurrentLocation(Utils.java:274) ...
Created attachment 41828 [details] Exception
This problem is caused by the fact that Profiling Points can currently be inserted only into existing files. Since JDK sources are internally represented by AbstractFileObject without any mapping to real File instance, Profiling Points cannot be created there. BTW the cause is the same as for Issue 103885. Fixed by disabling possibility to put Profiling Points to JDK classes. If it turns out that using Profiling Points in JDK classes would be useful, separate RFE should be filed. Fixed for Beta1.
Verified with Profiler 1.2 070706 See also Issue 109132