Message:

   The following issue has been closed.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JAMES-5

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JAMES-5
    Summary: Creating a new MailAddress can result in a 
java.lang.StringIndexOutOfBoundsException
       Type: Bug

     Status: Closed
 Resolution: FIXED

    Project: James
 Components: 
             Mailet API
   Versions:
             1.2.1

   Assignee: 
   Reporter: Alistair Black

    Created: Thu, 5 Jul 2001 9:11 AM
    Updated: Sun, 6 Jun 2004 6:03 PM
Environment: Operating System: Windows NT/2K
Platform: PC

Description:
The following code generates a java.lang.StringIndexOutOfBoundsException 
exception: -

MailAddress mailAddr = new MailAddress("[EMAIL PROTECTED]");

The exception is as follows: -

Jul 05 16:59:59 2001: java.lang.StringIndexOutOfBoundsException: String index 
out of range: 4
Jul 05 16:59:59 2001:   at java.lang.String.charAt(String.java:503)
Jul 05 16:59:59 2001:   at org.apache.mailet.MailAddress.<init>
(MailAddress.java:102)

I can only generate this error if the last character is a fullstop.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to