bandaid fix for callTreePovider stack trace

This commit is contained in:
ghidravore 2020-08-21 13:26:04 -04:00
parent 723214d48a
commit 2892aeadc7

View File

@ -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;