Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-5

Creating a new MailAddress can result in a java.lang.StringIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 1.2.1
    • None
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 2461

    Description

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

      MailAddress mailAddr = new MailAddress("A@B.");

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alistair@black-007.freeserve.co.uk Alistair Black
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: