Bug-fix for cached online accounts

This commit is contained in:
catbref 2020-08-07 16:19:32 +01:00
parent 43fb5d9332
commit b97fbd3171

View File

@ -1484,7 +1484,9 @@ public class Controller extends Thread {
if (this.latestBlocksOnlineAccounts.size() == MAX_BLOCKS_CACHED_ONLINE_ACCOUNTS)
this.latestBlocksOnlineAccounts.pollLast();
this.latestBlocksOnlineAccounts.addFirst(Collections.unmodifiableList(latestBlocksOnlineAccounts));
this.latestBlocksOnlineAccounts.addFirst(latestBlocksOnlineAccounts == null
? Collections.emptyList()
: Collections.unmodifiableList(latestBlocksOnlineAccounts));
}
}