mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-03-30 21:18:17 +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() {
|
private synchronized static Map<String, String> getExpiredExtendedTokens() {
|
||||||
|
if(extendedTokens == null) {
|
||||||
|
return new HashMap<>();
|
||||||
|
}
|
||||||
Set<String> set = new HashSet<>();
|
Set<String> set = new HashSet<>();
|
||||||
for(Map.Entry<String, ExtendedToken> e : extendedTokens.entrySet()) {
|
for(Map.Entry<String, ExtendedToken> e : extendedTokens.entrySet()) {
|
||||||
if(e.getValue().expire != 0 && e.getValue().expire < System.currentTimeMillis()) {
|
if(e.getValue().expire != 0 && e.getValue().expire < System.currentTimeMillis()) {
|
||||||
|
|
Loading…
Reference in a new issue