Skip to content

Commit b970c65

Browse files
committed
Test fix in JwkSetLoader.
1 parent 5363770 commit b970c65

File tree

1 file changed

+8
-1
lines changed
  • x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/jwt

1 file changed

+8
-1
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/jwt/JwkSetLoader.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,14 @@ static class UrlPkcJwkSetLoader implements PkcJwkSetLoader {
280280
Scheduler.Cancellable task;
281281

282282
UrlPkcJwkSetLoader(RealmConfig realmConfig, ThreadPool threadPool, URI jwkSetPathUri, SSLService ssl, Consumer<byte[]> listener) {
283-
this(realmConfig, threadPool, threadPool.generic(), jwkSetPathUri, JwtUtil.createHttpClient(realmConfig, ssl), listener);
283+
this(
284+
realmConfig,
285+
threadPool,
286+
threadPool == null ? null : threadPool.generic(),
287+
jwkSetPathUri,
288+
JwtUtil.createHttpClient(realmConfig, ssl),
289+
listener
290+
);
284291
}
285292

286293
UrlPkcJwkSetLoader(

0 commit comments

Comments
 (0)