GP-0 DB set null state improvements for Fields and SparseRecord

This commit is contained in:
ghidra1 2022-08-10 12:33:54 -04:00
parent c523b2b9d4
commit d8922d19ec
10 changed files with 130 additions and 14 deletions

View file

@ -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();