throw new IllegalArgumentException
This commit is contained in:
parent
c6accaacb9
commit
d249e28787
|
@ -20,6 +20,8 @@ public class DbcField {
|
||||||
this.offset = offset;
|
this.offset = offset;
|
||||||
this.category = category;
|
this.category = category;
|
||||||
this.isBigEndian = isBigEndian;
|
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) {
|
public static DbcField parseField(DbcPacket parent, String line) {
|
||||||
|
|
Loading…
Reference in New Issue