We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9bfcb2 commit 6ca462fCopy full SHA for 6ca462f
gxmail/src/main/java/com/genexus/internet/SMTPSessionJavaMail.java
@@ -232,18 +232,14 @@ public void logout(GXSMTPSession sessionInfo)
232
{
233
try
234
235
- t.close();
+ if (t != null)
236
+ t.close();
237
}
238
catch (MessagingException e)
239
240
log ("7 - IOException " + e.getMessage());
241
sessionInfo.exceptionHandler(new GXMailException(e.getMessage(), MAIL_ConnectionLost));
242
- catch (NullPointerException e)
243
- {
244
- log ("8 - NullPointerException " + e.getMessage());
245
- sessionInfo.exceptionHandler(new GXMailException(e.getMessage(), MAIL_ConnectionLost));
246
- }
247
248
249
public void setSubject(String subject)
0 commit comments