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 100741 - NPE from profiler utils
Summary: NPE from profiler utils
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords: T9Y
: 100754 100954 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-12 09:28 UTC by ehucka
Modified: 2007-04-19 08:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-04-12 09:28:15 UTC
NetBeans IDE Dev (Build 200704111800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.16-1.2122_FC5 running on i386


Debugger functional tests failing by throwing NPE:

java.lang.NullPointerException
	at org.netbeans.modules.profiler.utils.SourceUtils$4.run(SourceUtils.java:370)
	at org.netbeans.modules.profiler.utils.SourceUtils$4.run(SourceUtils.java:350)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:450)
	at
org.netbeans.modules.profiler.utils.SourceUtils.isInstanceOf(SourceUtils.java:347)
	at org.netbeans.modules.profiler.utils.SourceUtils.isApplet(SourceUtils.java:195)
	at org.netbeans.modules.profiler.utils.SourceUtils.isRunnable(SourceUtils.java:199)
	at
org.netbeans.modules.profiler.j2se.J2SEProjectTypeProfiler.isFileObjectSupported(J2SEProjectTypeProfiler.java:102)
	at org.netbeans.modules.profiler.actions.AntActions$1.enable(AntActions.java:102)
	at
org.netbeans.modules.profiler.actions.ProjectSensitiveAction$1.doInBackground(ProjectSensitiveAction.java:110)
	at com.sun.tools.profiler.ui.SwingWorker$2.run(SwingWorker.java:101)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Jiri Sedlacek 2007-04-12 10:39:51 UTC
*** Issue 100754 has been marked as a duplicate of this issue. ***
Comment 2 Max Sauer 2007-04-12 13:03:15 UTC
This NPE is thrown randomly while working with today's trunk.
---
NetBeans IDE Dev (Build 200704111800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
SunOS version 5.10 running on sparc
en (nb); ISO646-US
Comment 3 J Bachorik 2007-04-12 19:39:30 UTC
fixed in trunk; added sanity checks to prevent NPEs
Comment 4 J Bachorik 2007-04-12 19:39:52 UTC
fixed in trunk; added sanity checks to prevent NPEs
Comment 5 Tomas Hurka 2007-04-15 07:26:52 UTC
*** Issue 100954 has been marked as a duplicate of this issue. ***
Comment 6 Tomas Hurka 2007-04-15 07:28:37 UTC
See Issue 100954 for steps how to reproduce it.
Comment 7 ehucka 2007-04-19 08:39:18 UTC
verified