File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
gxmail/src/main/java/com/genexus/internet Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1313
1414import jakarta .mail .internet .MimeBodyPart ;
1515import jakarta .activation .*;
16+ import org .apache .commons .lang3 .ObjectUtils ;
1617
1718public final class SMTPSessionJavaMail implements GXInternetConstants ,ISMTPSession
1819{
@@ -239,6 +240,11 @@ public void logout(GXSMTPSession sessionInfo)
239240 log ("7 - IOException " + e .getMessage ());
240241 sessionInfo .exceptionHandler (new GXMailException (e .getMessage (), MAIL_ConnectionLost ));
241242 }
243+ catch (NullPointerException e )
244+ {
245+ log ("8 - NullPointerException " + e .getMessage ());
246+ sessionInfo .exceptionHandler (new GXMailException (e .getMessage (), MAIL_ConnectionLost ));
247+ }
242248 }
243249
244250 public void setSubject (String subject )
You can’t perform that action at this time.
0 commit comments