diff --git a/p2p/src/main/java/haveno/network/p2p/mailbox/MailboxMessageService.java b/p2p/src/main/java/haveno/network/p2p/mailbox/MailboxMessageService.java index 6dcd326b33..5249a7caf2 100644 --- a/p2p/src/main/java/haveno/network/p2p/mailbox/MailboxMessageService.java +++ b/p2p/src/main/java/haveno/network/p2p/mailbox/MailboxMessageService.java @@ -414,9 +414,11 @@ public class MailboxMessageService implements HashMapChangedListener, PersistedD new Thread(() -> { try { var mailboxItems = getMailboxItems(protectedMailboxStorageEntries); - log.info("Batch processing of {} mailbox entries took {} ms", - protectedMailboxStorageEntries.size(), - System.currentTimeMillis() - ts); + + if (!protectedMailboxStorageEntries.isEmpty()) + log.info("Batch processing of {} mailbox entries took {} ms", + protectedMailboxStorageEntries.size(), + System.currentTimeMillis() - ts); future.set(mailboxItems); } catch (Throwable throwable) {