Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 108391f9 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

Fix IllegalArgumentException on empty pendingMoveOrCopy

Fixes #3300
parent 23d7697f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1832,6 +1832,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);