if (bcc != null) {
message.setRecipients(Message.RecipientType.BCC, bcc);
}
subject = GetterUtil.getString(subject);
message.setSubject(subject);
<BUG>if ((attachments != null) && (attachments.length > 0)) {
</BUG>
MimeMultipart rootMultipart = new MimeMultipart(
_MULTIPART_TYPE_MIXED);
MimeMultipart messageMultipart = new MimeMultipart(

if (bcc != null) {
message.setRecipients(Message.RecipientType.BCC, bcc);
}
subject = GetterUtil.getString(subject);
message.setSubject(subject);
if ((attachments != null) && (attachments.size() > 0)) {
MimeMultipart rootMultipart = new MimeMultipart(
_MULTIPART_TYPE_MIXED);
MimeMultipart messageMultipart = new MimeMultipart(
