mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 00:55:08 +08:00
bandaid fix for callTreePovider stack trace
This commit is contained in:
+10
-5
@@ -1090,11 +1090,16 @@ public class CallTreeProvider extends ComponentProviderAdapter implements Domain
|
||||
}
|
||||
|
||||
private boolean updateRootNodes(Function function) {
|
||||
CallNode callNode = (CallNode) incomingTree.getModelRoot();
|
||||
Function nodeFunction = callNode.getContainingFunction();
|
||||
if (nodeFunction.equals(function)) {
|
||||
reloadUpdateManager.update();
|
||||
return true;
|
||||
GTreeNode root = incomingTree.getModelRoot();
|
||||
// root might be a "PendingRootNode"
|
||||
//TODO do we need to use a PendingRootNode?
|
||||
if (root instanceof CallNode) {
|
||||
CallNode callNode = (CallNode) root;
|
||||
Function nodeFunction = callNode.getContainingFunction();
|
||||
if (nodeFunction.equals(function)) {
|
||||
reloadUpdateManager.update();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user