GP-5625 rtti script added some missing null checks

This commit is contained in:
ghidra007
2025-04-28 18:36:37 +00:00
parent 1179fc10a0
commit e4163c60a5
2 changed files with 14 additions and 1 deletions

View File

@@ -3437,7 +3437,9 @@ public class RTTIGccClassRecoverer extends RTTIClassRecoverer {
Function calledFunction =
extendedFlatAPI.getReferencedFunction(instruction.getMinAddress(), false);
if (calledFunction.getName().equals(expectedCalledFunctionName)) {
if (calledFunction != null &&
calledFunction.getName().equals(expectedCalledFunctionName)) {
return instruction.getAddress();
}
}