Commit ad498fd9 authored by Vincent Breitmoser's avatar Vincent Breitmoser Committed by cketti

Fix IllegalArgumentException on empty pendingMoveOrCopy

Fixes #3300
parent 83fc4c8d
......@@ -1866,6 +1866,11 @@ public class MessagingController {
}
}
if (messages.isEmpty()) {
Timber.i("processingPendingMoveOrCopy: no remote messages to move, skipping");
return;
}
if (!remoteSrcFolder.exists()) {
throw new MessagingException(
"processingPendingMoveOrCopy: remoteFolder " + srcFolder + " does not exist", true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment