This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 7db35b832b Fix possible NPE
7db35b832b is described below

commit 7db35b832ba82a9145067fb82b96ed0201bb777d
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]

Reply via email to