return 1;
}
- if (ns.getList("recipient") == null || ns.getList("recipient").size() == 0) {
+ if ((ns.getList("recipient") == null || ns.getList("recipient").size() == 0) && (ns.getBoolean("endsession") || ns.getString("group") == null)) {
System.err.println("No recipients given");
System.err.println("Aborting sending.");
return 1;