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 0c3464f commit a756677Copy full SHA for a756677
gxmail/src/main/java/com/genexus/internet/POP3SessionJavaMail.java
@@ -328,9 +328,10 @@ public String getNextUID() throws GXMailException {
328
329
public int getMessageCount() throws GXMailException {
330
try {
331
+ if (emailFolder == null || !emailFolder.isOpen())
332
+ throw new GXMailException("The email folder is either null or closed", MAIL_ServerRepliedErr);
333
if (readSinceLast)
334
return emailFolder.getNewMessageCount();
-
335
return emailFolder.getMessageCount();
336
} catch (MessagingException e) {
337
log(e.getMessage());
0 commit comments