I have created a servlet using javamail api. When I test the servlet I get a null pointer exception thrown by the InternetAddress class. See the source code comment //******. The mail is sent and received succesfully by the recipient although a null pointer is thrown. The stack trace states the problem occurs at line 569 of InternetAddress.java. I dont have the source code.
I have disguised the problem behind a friendly error page that refreshes and redirects back to the home page.
Source code as follows:
Regards Stephen Batsas SCPJ SCWCD
[ Jess added UBB [code] tags to perserve whitespace ] [ September 02, 2004: Message edited by: Jessica Sant ]