This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 5e5ccf2ce3 Avoid an IDE warning
5e5ccf2ce3 is described below
commit 5e5ccf2ce39b1eaf47dfef348c79a2fa1af580d9
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Feb 24 16:02:02 2023 +0000
Avoid an IDE warning
---
java/org/apache/catalina/realm/JAASRealm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/realm/JAASRealm.java
b/java/org/apache/catalina/realm/JAASRealm.java
index 7fad24a192..ae19308a18 100644
--- a/java/org/apache/catalina/realm/JAASRealm.java
+++ b/java/org/apache/catalina/realm/JAASRealm.java
@@ -394,7 +394,7 @@ public class JAASRealm extends RealmBase {
invocationSuccess = false;
return null;
} finally {
- if (!isUseContextClassLoader()) {
+ if (currentThread != null) {
currentThread.setContextClassLoader(ocl);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]