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 95804 - NPE on Analyze Performance of freeform project
Summary: NPE on Analyze Performance of freeform project
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-02-16 14:03 UTC by Alexander Kouznetsov
Modified: 2007-02-26 12:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (2.85 KB, text/plain)
2007-02-16 14:04 UTC, Alexander Kouznetsov
Details
Freeform app (10.67 KB, application/x-compressed)
2007-02-16 14:06 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-02-16 14:03:45 UTC
Profiler 070216
NetBeans IDE Dev (Build 200702151900)
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 freeform project
- Right-click Anagrams.java and select Profile File
- Select Analyze Performance, Entire Application, Profile All Classes
- RESULT: java.lang.NullPointerException
	at
org.netbeans.modules.profiler.utils.SourceUtils.hasMainMethod(SourceUtils.java:459)
Comment 1 Alexander Kouznetsov 2007-02-16 14:04:13 UTC
Created attachment 38612 [details]
Exception
Comment 2 Alexander Kouznetsov 2007-02-16 14:06:11 UTC
Created attachment 38613 [details]
Freeform app
Comment 3 J Bachorik 2007-02-16 14:35:11 UTC
fixed in trunk
added a sanity check for NULL value before attempting to use the value
Comment 4 Alexander Kouznetsov 2007-02-26 12:22:33 UTC
Verified with

Profiler 070226
NetBeans IDE Dev (Build 200702251900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251