Skip to content

Commit fdaefe9

Browse files
Avoid null pointer exception crashing the webapp. (#956)
* Avoid null pointer exception crashing the webapp. Issue:203914 * Remove unused import * Don't close transport when it's null
1 parent 95a6919 commit fdaefe9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gxmail/src/main/java/com/genexus/internet/SMTPSessionJavaMail.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ public void logout(GXSMTPSession sessionInfo)
232232
{
233233
try
234234
{
235-
t.close();
235+
if (t != null)
236+
t.close();
236237
}
237238
catch (MessagingException e)
238239
{

0 commit comments

Comments
 (0)