mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 03:22:01 +08:00
Merge remote-tracking branch 'origin/GP-6467_dev747368_fix_decompileraction_NPE'
This commit is contained in:
+3
-3
@@ -167,10 +167,10 @@ public abstract class AbstractDecompilerAction extends DockingAction {
|
||||
ClangToken token = context.getTokenAtCursor();
|
||||
|
||||
Function f = null;
|
||||
if (token instanceof ClangFuncNameToken) {
|
||||
f = DecompilerUtils.getFunction(context.getProgram(), (ClangFuncNameToken) token);
|
||||
if (token instanceof ClangFuncNameToken funcNameToken) {
|
||||
f = DecompilerUtils.getFunction(context.getProgram(), funcNameToken);
|
||||
}
|
||||
else {
|
||||
else if (token != null) {
|
||||
HighSymbol highSymbol = token.getHighSymbol(context.getHighFunction());
|
||||
if (highSymbol instanceof HighFunctionShellSymbol) {
|
||||
f = (Function) highSymbol.getSymbol().getObject();
|
||||
|
||||
Reference in New Issue
Block a user