[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1222) mail-ra.rar doesn't support pop3s
Pete Muir (JIRA)
jira-events at lists.jboss.org
Sun Apr 22 13:52:30 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1222?page=all ]
Pete Muir closed JBSEAM-1222.
-----------------------------
Resolution: Duplicate Issue
> mail-ra.rar doesn't support pop3s
> ---------------------------------
>
> Key: JBSEAM-1222
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1222
> Project: JBoss Seam
> Issue Type: Bug
> Components: Mail
> Affects Versions: 1.2.0.GA
> Environment: JBoss 4.0.5.GA, JBoss Seam 1.2.0.GA.Patch1
> Reporter: Chunyun Zhao
> Assigned To: Pete Muir
>
> When I use pop3s as the store protocol, it throws NullPointerException.
> The following is the getInstance method of MailFolder class:
> public static MailFolder getInstance(MailActivationSpec mailActivationSpec)
> {
> if("pop3".equals(mailActivationSpec.getStoreProtocol()))
> return new POP3MailFolder(mailActivationSpec);
> if("imap".equals(mailActivationSpec.getStoreProtocol()))
> return new IMAPMailFolder(mailActivationSpec);
> else
> return null;
> }
> Obviously, if store protocol is pop3s, this method returns null back. The fix I made locally is just to change above method to:
> public static MailFolder getInstance(MailActivationSpec mailActivationSpec)
> {
> if(mailActivationSpec.getStoreProtocol().startsWith("pop3"))
> return new POP3MailFolder(mailActivationSpec);
> if("imap".equals(mailActivationSpec.getStoreProtocol()))
> return new IMAPMailFolder(mailActivationSpec);
> else
> return null;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list