mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-0 DB set null state improvements for Fields and SparseRecord
This commit is contained in:
parent
c523b2b9d4
commit
d8922d19ec
10 changed files with 130 additions and 14 deletions
|
@ -162,8 +162,11 @@ public class FixedField10 extends FixedField {
|
|||
|
||||
@Override
|
||||
public void setBinaryData(byte[] d) {
|
||||
if (d == null || d.length != 10) {
|
||||
// null value not permitted although null state is (see setNull())
|
||||
if (d == null) {
|
||||
setNull();
|
||||
return;
|
||||
}
|
||||
if (d.length != 10) {
|
||||
throw new IllegalArgumentException("Invalid FixedField10 data length");
|
||||
}
|
||||
updatingValue();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue