When using mailer taglib's SendTag, I got NullPointerException on line 189. I suggest that --- if (error == null) error = new ArrayList(); --- be added to the previous line to solve the problem.