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 102755 - [ProfilingPoints] NPE on Adding a profiling point
Summary: [ProfilingPoints] NPE on Adding a profiling point
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-27 13:19 UTC by Alexander Kouznetsov
Modified: 2007-07-09 14:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (6.00 KB, text/plain)
2007-04-27 13:23 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-04-27 13:19:54 UTC
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)

...
Comment 1 Alexander Kouznetsov 2007-04-27 13:23:40 UTC
Created attachment 41828 [details]
Exception
Comment 2 Jiri Sedlacek 2007-06-26 10:57:47 UTC
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.
Comment 3 Alexander Kouznetsov 2007-07-09 14:45:04 UTC
Verified with Profiler 1.2 070706

See also Issue 109132