Throw exception in case of serialization issue

This commit is contained in:
Bea 2022-12-20 15:13:21 +01:00
parent 1644a4b07d
commit 28d7ff18ba

View File

@ -18,8 +18,9 @@ public class SerializationUtil
so.flush();
return Base64.getEncoder().encodeToString(bo.toByteArray());
}
catch (IOException ignored) {}
return null;
catch (IOException e) {
throw new SerializationException("Error during serialization", e);
}
}
public static LinkedList deserializeBase64(String dataStr) {