mirror of https://github.com/M66B/FairEmail.git
Better check
This commit is contained in:
parent
96f820658b
commit
21631c17be
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue