mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Add null check for def of other VarnodeAST in equals method
This commit is contained in:
parent
3813583689
commit
f15798ccf9
1 changed files with 6 additions and 2 deletions
|
@ -222,8 +222,12 @@ public class VarnodeAST extends Varnode {
|
|||
return false;
|
||||
if (isInput() != vn.isInput())
|
||||
return false;
|
||||
if (def != null)
|
||||
return (def.getSeqnum().equals(vn.getDef().getSeqnum()));
|
||||
if (def != null) {
|
||||
PcodeOp vnDef = vn.getDef();
|
||||
if (vnDef == null)
|
||||
return false;
|
||||
return (def.getSeqnum().equals(vnDef.getSeqnum()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue