simple-java-mail
simple-java-mail copied to clipboard
fixed exception handling for acquireTransport
Hi, Please review these changes, below are the changes
- returning null as, Optional.ofNullable() will skip the next mapping and throw an exception if the value is null.
- apart from
InterruptedException, other exceptions can also occure hence used generic Exception. ( for exampleallocatecan throw an exception)
thanks,