throw new IllegalArgumentException

This commit is contained in:
rusefillc 2024-05-14 17:02:30 -04:00
parent c6accaacb9
commit d249e28787
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ public class DbcField {
this.offset = offset;
this.category = category;
this.isBigEndian = isBigEndian;
if (mult == 0 && offset == 0)
throw new IllegalArgumentException("Really? multiplier and offset both zero for " + name);
}
public static DbcField parseField(DbcPacket parent, String line) {