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 231375 - NullPointerException: The element parameter cannot be null
Summary: NullPointerException: The element parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Cyhelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 14:56 UTC by Egor Ushakov
Modified: 2013-06-22 02:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201491


Attachments
stacktrace (2.63 KB, text/plain)
2013-06-17 14:56 UTC, Egor Ushakov
Details
stacktrace (2.63 KB, text/plain)
2013-06-17 16:16 UTC, Egor Ushakov
Details
snapshot (76.61 KB, application/octet-stream)
2013-06-19 14:59 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2013-06-17 14:56:01 UTC
This bug was originally marked as duplicate of bug 229702, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201306162301)
VM: Java HotSpot(TM) Client VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: SunOS

User Comments:
gorrus: go to source from the profiler back traces list




Stacktrace: 
java.lang.NullPointerException: The element parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:429)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:388)
   at org.netbeans.api.java.source.ui.ElementOpen.open(ElementOpen.java:130)
   at org.netbeans.modules.profiler.nbimpl.providers.GoToJavaSourceProvider$GotoSourceRunnable$1.run(GoToJavaSourceProvider.java:124)
   at org.netbeans.modules.profiler.nbimpl.providers.GoToJavaSourceProvider$GotoSourceRunnable$1.run(GoToJavaSourceProvider.java:114)
Comment 1 Egor Ushakov 2013-06-17 14:56:03 UTC
Created attachment 135899 [details]
stacktrace
Comment 2 Egor Ushakov 2013-06-17 16:16:49 UTC
Created attachment 135906 [details]
stacktrace

go to source from the call tree
Comment 3 Tomas Hurka 2013-06-19 11:09:15 UTC
Can you, please, attach snapshot and steps how to reproduce it. Thanks.
Comment 4 Egor Ushakov 2013-06-19 14:59:52 UTC
Created attachment 136035 [details]
snapshot

find ...IndexerCallbacksImpl$4.apply() and try to go to source, every other time I get the exception
Comment 5 Petr Cyhelsky 2013-06-21 13:12:28 UTC
fixed in http://hg.netbeans.org/profiler-main/rev/175ed86d76ec
Comment 6 Quality Engineering 2013-06-22 02:06:17 UTC
Integrated into 'main-golden', will be available in build *201306212301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/175ed86d76ec
User: Petr Cyhelsky <cyhelsky@netbeans.org>
Log: #231375 - Go to source should deal better with anonymous inner classes