Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339501 - Open Call Hierarchy triggers error
Summary: Open Call Hierarchy triggers error
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 7.0.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 07:26 EST by Peter Brook CLA
Modified: 2011-05-25 01:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Brook CLA 2011-03-10 07:26:36 EST
What steps will reproduce the problem?
1.  Press the drop down arrow next to a C++ binary or shared library
2.  Right click on one of the symbols listed
3.  Click on "Open Call Hierarchy"


-- Error Details --
Date: Thu Mar 10 04:20:14 PST 2011
Message: An internal error occurred during: "Child Node Computation".
Severity: Error
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.java.product)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=M20110210-1200
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -data /home/pbrook/research_workspace -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product


Exception Stack Trace:
java.lang.NullPointerException
	at org.eclipse.cdt.internal.ui.callhierarchy.CHQueries.findCalledBy(CHQueries.java:60)
	at org.eclipse.cdt.internal.ui.callhierarchy.CHContentProvider.asyncronouslyComputeReferencedBy(CHContentProvider.java:160)
	at org.eclipse.cdt.internal.ui.callhierarchy.CHContentProvider.asyncronouslyComputeChildren(CHContentProvider.java:102)
	at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.runJob(AsyncTreeContentProvider.java:223)
	at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider.access$0(AsyncTreeContentProvider.java:218)
	at org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider$1.run(AsyncTreeContentProvider.java:63)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Markus Schorn CLA 2011-05-25 01:59:47 EDT
I simply fixed the NPE. Note, that the call-hierarchy does not work for functions found in the binaries.