This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 2ed48de26a Fix possible NPE
2ed48de26a is described below
commit 2ed48de26a89e89c8b4b7ff99bdae7f3bc3dae94
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 43d05bd92f..900a46398c 100644
--- a/java/org/apache/catalina/realm/JAASRealm.java
+++ b/java/org/apache/catalina/realm/JAASRealm.java
@@ -642,7 +642,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]