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:
parent
cedaecb38e
commit
48581bd53c
2 changed files with 2 additions and 2 deletions
|
@ -430,7 +430,7 @@ public class MimeMessage extends Message {
|
|||
|
||||
@Override
|
||||
public InputStream getInputStream() throws MessagingException {
|
||||
return null;
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -106,6 +106,6 @@ public class MimeMultipart extends Multipart {
|
|||
|
||||
@Override
|
||||
public InputStream getInputStream() throws MessagingException {
|
||||
return null;
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue