forked from I2P_Developers/i2p.i2p
2005-09-12 comwiz
* Migrated the router tests to junit
This commit is contained in:
@@ -144,7 +144,7 @@ public abstract class I2NPMessageImpl extends DataStructureImpl implements I2NPM
|
||||
if (size < 15 + CHECKSUM_LENGTH) throw new DataFormatException("Unable to build the message");
|
||||
byte buf[] = new byte[size];
|
||||
int read = toByteArray(buf);
|
||||
if (read < 0)
|
||||
if (read < 0) throw new DataFormatException("Unable to build the message");
|
||||
out.write(buf, 0, read);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user