mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +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;
|
return false;
|
||||||
if (isInput() != vn.isInput())
|
if (isInput() != vn.isInput())
|
||||||
return false;
|
return false;
|
||||||
if (def != null)
|
if (def != null) {
|
||||||
return (def.getSeqnum().equals(vn.getDef().getSeqnum()));
|
PcodeOp vnDef = vn.getDef();
|
||||||
|
if (vnDef == null)
|
||||||
|
return false;
|
||||||
|
return (def.getSeqnum().equals(vnDef.getSeqnum()));
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue