Throw exception in case of serialization issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a80b2cc5a9
commit
3212ceb03c
@ -18,8 +18,9 @@ public class SerializationUtil
|
|||||||
so.flush();
|
so.flush();
|
||||||
return Base64.getEncoder().encodeToString(bo.toByteArray());
|
return Base64.getEncoder().encodeToString(bo.toByteArray());
|
||||||
}
|
}
|
||||||
catch (IOException ignored) {}
|
catch (IOException e) {
|
||||||
return null;
|
throw new SerializationException("Error during serialization", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static LinkedList deserializeBase64(String dataStr) {
|
public static LinkedList deserializeBase64(String dataStr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user