forked from Qortal/qortal
Added defensiveness in getOnlineTimestampModulus(), just in case NTP.getTime() returns null
This commit is contained in:
parent
0c3988202e
commit
ef51cf5702
@ -117,7 +117,8 @@ public class OnlineAccountsManager extends Thread {
|
||||
}
|
||||
|
||||
public static long getOnlineTimestampModulus() {
|
||||
if (NTP.getTime() >= BlockChain.getInstance().getOnlineAccountsModulusV2Timestamp()) {
|
||||
Long now = NTP.getTime();
|
||||
if (now != null && now >= BlockChain.getInstance().getOnlineAccountsModulusV2Timestamp()) {
|
||||
return ONLINE_TIMESTAMP_MODULUS_V2;
|
||||
}
|
||||
return ONLINE_TIMESTAMP_MODULUS_V1;
|
||||
|
Loading…
Reference in New Issue
Block a user