mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1415 corrected NPE in CreatethunkFunctionCmd
This commit is contained in:
parent
394103e3c3
commit
c9121fe498
1 changed files with 3 additions and 0 deletions
|
@ -796,6 +796,9 @@ public class CreateThunkFunctionCmd extends BackgroundCommand {
|
|||
}
|
||||
// check the parent varnode
|
||||
Register register = program.getRegister(regVarnode);
|
||||
if (register == null) {
|
||||
return false;
|
||||
}
|
||||
Register parentRegister = register.getParentRegister();
|
||||
if (parentRegister == null) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue