Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339501

Summary: Open Call Hierarchy triggers error
Product: [Tools] CDT Reporter: Peter Brook <pbrook+nospam>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED FIXED QA Contact: Doug Schaefer <cdtdoug>
Severity: normal    
Priority: P3 CC: yevshif
Version: 7.0.2   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:

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.