This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 238ef2cfff Fix possible NPE
238ef2cfff is described below
commit 238ef2cfff205a2b090b94babf9d10de88b3bd24
Author: Mark Thomas <[email protected]>
AuthorDate: Tue May 26 14:40:49 2026 +0100
Fix possible NPE
---
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 e63856cf85..ca2efb833e 100644
--- a/java/org/apache/catalina/realm/JAASRealm.java
+++ b/java/org/apache/catalina/realm/JAASRealm.java
@@ -643,7 +643,7 @@ public class JAASRealm extends RealmBase {
return this.jaasConfiguration;
}
} catch (InvocationTargetException ex) {
- throw new RuntimeException(ex.getCause());
+ throw new
RuntimeException(ExceptionUtils.unwrapInvocationTargetException(ex));
} catch (SecurityException | URISyntaxException |
ReflectiveOperationException | IllegalArgumentException ex) {
throw new RuntimeException(ex);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]