1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Better check

This commit is contained in:
M66B 2019-06-25 12:48:04 +02:00
parent 96f820658b
commit 21631c17be

View file

@ -299,9 +299,12 @@ public class ServiceSend extends LifecycleService {
boolean debug = prefs.getBoolean("debug", false);
if (message.identity == null)
throw new IllegalArgumentException("Identity removed");
throw new IllegalArgumentException("Send without identity");
EntityIdentity ident = db.identity().getIdentity(message.identity);
if (ident == null)
throw new IllegalArgumentException("Identity not found");
String protocol = ident.getProtocol();
// Get properties