Fix NPE in CacheSpecMap when specs is not specified.
This commit is contained in:
parent
1ed5e5b115
commit
60088164a6
@ -38,10 +38,12 @@ public class CacheSpecsMap {
|
||||
|
||||
@PostConstruct
|
||||
public void replaceTheJWTTokenRefreshExpTime() {
|
||||
if (specs != null) {
|
||||
var cacheSpecs = specs.get(CacheConstants.USERS_SESSION_INVALIDATION_CACHE);
|
||||
if (cacheSpecs != null) {
|
||||
cacheSpecs.setTimeToLiveInMinutes((refreshTokenExpTime / 60) + 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user