getSubject gives StringIndexOutOfBoundsException error
0 posts in topic
Flat View  Flat View

Posted By:   Tim_Olson
Posted On:   Tuesday, April 30, 2002 06:29 AM

On a mail message subject header that has a non printable char (shows as a box)

The following code generates the message -

java.lang.StringIndexOutOfBoundsException: length must be >= 0

mailsubject = message.getSubject();

What can I do to fix. P.S. the code is in a "try" block and doesn't catch it. Instead it just "hangs"

About | Sitemap | Contact