mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-05 07:45:11 +01:00
Return a RunTimeException if the input for the TMD was not valid.
This commit is contained in:
parent
7b27478160
commit
b016295e9f
@ -108,6 +108,9 @@ public final class TMD {
|
||||
}
|
||||
|
||||
public static TMD parseTMD(byte[] input) {
|
||||
if (input == null || input.length == 0) {
|
||||
throw new RuntimeException("Invalid TMD file.");
|
||||
}
|
||||
byte[] signature = new byte[SIGNATURE_LENGTH];
|
||||
byte[] issuer = new byte[ISSUER_LENGTH];
|
||||
byte[] reserved = new byte[RESERVED_LENGTH];
|
||||
|
Loading…
Reference in New Issue
Block a user