Throw instead of returning null when Body.getInputStream() is not supported

Inspired by trying to find out what happened in issue #1794
This commit is contained in:
cketti 2016-11-14 12:18:08 +01:00
parent cedaecb38e
commit 48581bd53c
2 changed files with 2 additions and 2 deletions

View file

@ -430,7 +430,7 @@ public class MimeMessage extends Message {
@Override
public InputStream getInputStream() throws MessagingException {
return null;
throw new UnsupportedOperationException();
}
@Override

View file

@ -106,6 +106,6 @@ public class MimeMultipart extends Multipart {
@Override
public InputStream getInputStream() throws MessagingException {
return null;
throw new UnsupportedOperationException();
}
}