Skip to content

Commit

Permalink
Fix NPE in TomcatJSS.loadTomcatConfig()
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Nov 27, 2023
1 parent 9576586 commit 80cc9ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tomcat/src/main/java/org/dogtagpki/jss/tomcat/TomcatJSS.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,11 @@ public void loadTomcatConfig(Document document) throws XPathExpressionException
"/Server/Service[@name='Catalina']/Connector[@SSLEnabled='true']",
document, XPathConstants.NODE);

if (connector == null) {
// no SSL connector
return;
}

String certDbProp = connector.getAttribute("certdbDir");
if (certDbProp != null)
setCertdbDir(certDbProp);
Expand Down

0 comments on commit 80cc9ba

Please sign in to comment.