mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
Fixed potential NPE
This commit is contained in:
parent
363f44b39a
commit
fbc0c3df81
1 changed files with 4 additions and 1 deletions
|
@ -130,7 +130,10 @@ public class SymbolTreeRootNode extends SymbolCategoryNode {
|
|||
Symbol functionSymbol = searchSymbol.getParentSymbol();
|
||||
SymbolNode parentKey = SymbolNode.createNode(functionSymbol, program);
|
||||
GTreeNode functionNode = findFunctionSymbolNode(parentKey, loadChildren, monitor);
|
||||
return ((SymbolTreeNode) functionNode).findSymbolTreeNode(key, loadChildren, monitor);
|
||||
if (functionNode != null) {
|
||||
return ((SymbolTreeNode) functionNode).findSymbolTreeNode(key, loadChildren, monitor);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private GTreeNode findFunctionSymbolNode(SymbolNode key, boolean loadChildren,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue