Added null check to UUID decryption

This commit is contained in:
Dave
2015-01-05 22:22:36 +02:00
parent 7e2c130561
commit df651d96c9

View File

@@ -208,6 +208,10 @@ public final class NoSession implements Serializable {
}
public static UUID decryptUUID(byte[] data) throws NoDashSessionBadUUIDException {
if (data == null) {
throw new NoDashSessionBadUUIDException();
}
try {
return UUID.fromString(new String(NoUtil.decrypt(data)));
} catch (IllegalBlockSizeException e) {