Check content on send

pull/162/head
M66B 5 years ago
parent 4a5f4f7ba9
commit d557a9bd1a

@ -318,6 +318,9 @@ public class ServiceSend extends ServiceBase {
if (ident == null)
throw new IllegalArgumentException("Identity not found");
if (!message.content)
throw new IllegalArgumentException("Message body missing");
// Create message
Properties props = MessageHelper.getSessionProperties();
Session isession = Session.getInstance(props, null);

Loading…
Cancel
Save