no message
This commit is contained in:
@@ -17,17 +17,16 @@ public class Email extends ComponentsServerPass<EmailMessage> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
recipients = null;
|
||||
if (args.length<=1) {
|
||||
if (args.length <= 1) {
|
||||
return false;
|
||||
}
|
||||
target = (EmailMessage) args[0];
|
||||
if (args[1]instanceof Vector) {
|
||||
if (args[1] instanceof Vector) {
|
||||
recipients = (Vector<String>) args[1];
|
||||
return true;
|
||||
}
|
||||
else if (args[1] instanceof String){
|
||||
recipients= new Vector<>();
|
||||
for (int i=1; i< args.length; ++i){
|
||||
} else if (args[1] instanceof String) {
|
||||
recipients = new Vector<>();
|
||||
for (int i = 1; i < args.length; ++i) {
|
||||
recipients.add((String) args[i]);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user