3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-11 17:55:50 +00:00

Fix for NPE in last commit

This commit is contained in:
CalDescent 2022-09-11 20:04:51 +01:00
parent f042b5ca5f
commit 063ef8507b

View File

@ -375,7 +375,7 @@ public class Block {
// If mempow is active, remove any legacy accounts that are missing a nonce
if (timestamp >= BlockChain.getInstance().getOnlineAccountsMemoryPoWTimestamp()) {
onlineAccounts.removeIf(a -> a.getNonce() < 0);
onlineAccounts.removeIf(a -> a.getNonce() == null || a.getNonce() < 0);
}
// Load sorted list of reward share public keys into memory, so that the indexes can be obtained.