You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serializing and then deserializing an Empty Charsequence a "net.sharksystem.asap.ASAPException: read -1: no more data in stream" occurs.
A reproducable example:
public void ASAPSerialization_EmptyCharSequence_Exception() throws ASAPException, IOException {
ByteArrayOutputStream os = new ByteArrayOutputStream();
ASAPSerialization.writeCharSequenceParameter("", os);
byte[] serialized = os.toByteArray();
ByteArrayInputStream is = new ByteArrayInputStream(serialized);
CharSequence deserialized = ASAPSerialization.readCharSequenceParameter(is);
// Never reaches this statement
System.out.println(deserialized);
}
Activity