Fixing another NPE with JCache
@@ -186,8 +186,10 @@ public class JCacheOAuthDataProvider extends AbstractOAuthDataProvider {
@Override
protected void linkRefreshTokenToAccessToken(RefreshToken rt, ServerAccessToken at) {
super.linkRefreshTokenToAccessToken(rt, at);
+ if (!isStoreJwtTokenKeyOnly()) {
accessTokenCache.replace(at.getTokenKey(), at);
}
+ }
@Override
public void close() {
