mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] NPE
This commit is contained in:
parent
55c77dd343
commit
f12d13ef58
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue