* @throws java.lang.NullPointerException
* for Objects only: if the counter part has no data to send
*/
+ @SuppressWarnings("resource")
private Object rec(boolean asString) throws IOException,
NoSuchFieldException, NoSuchMethodException,
ClassNotFoundException, java.lang.NullPointerException {
contentToSend = false;
}
- if (in.next()) {
+ if (in.next() && !in.eof()) {
// TODO: could be possible to check for non-crypt and only
// do it for crypt
InputStream read = new ReplaceInputStream(in.open(), //