[FIX] NPE

This commit is contained in:
Gravita 2023-08-13 18:20:03 +07:00
parent 55c77dd343
commit f12d13ef58

View file

@ -152,6 +152,9 @@ public static RequestRestoreReport restore() throws Exception {
}
private synchronized static Map<String, String> getExpiredExtendedTokens() {
if(extendedTokens == null) {
return new HashMap<>();
}
Set<String> set = new HashSet<>();
for(Map.Entry<String, ExtendedToken> e : extendedTokens.entrySet()) {
if(e.getValue().expire != 0 && e.getValue().expire < System.currentTimeMillis()) {