Skip to content
Snippets Groups Projects
Commit 129e7ec7 authored by srosse's avatar srosse
Browse files

OO-1097: if the E-Mail to delete is null, nothing to delete

parent a74a2cae
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,7 @@ public class MailManagerImpl extends BasicManager implements MailManager {
*/
@Override
public void delete(DBMailLight mail, Identity identity, boolean deleteMetaMail) {
if(mail == null) return;//already deleted
if(StringHelper.containsNonWhitespace(mail.getMetaId()) && deleteMetaMail) {
List<DBMailLight> mails = getEmailsByMetaId(mail.getMetaId());
for(DBMailLight childMail:mails) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment