Vincenzo,

Did you mean to do this?

                if (mailAddress == null) {
                    // set to <>
                    apparentlyTo = new InternetAddress[0];
                }

I suspect that you did, but please add a comment explaining why in more
detail.  Which code was throwing the NPE if you used null instead?  From
what I can see, JavaMail should accept null as a parameter to
MimeMessage.setRecipients(), and internally converts a zero length array to
null.

        --- Noel


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

Reply via email to