Check content on send

This commit is contained in:
M66B 2019-08-25 08:38:04 +02:00
parent 4a5f4f7ba9
commit d557a9bd1a
1 changed files with 3 additions and 0 deletions

View File

@ -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);