diff --git a/build.gradle b/build.gradle index edb935c410..88e9fd5f1a 100644 --- a/build.gradle +++ b/build.gradle @@ -293,7 +293,7 @@ checkstyle { showViolations = false } gitHooks { - hooks = ['pre-commit': 'checkstyleMain'] + hooks = ['pre-push': 'checkstyleMain'] } // Eclipse plugin settings diff --git a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java index 72ee26d6d9..8a48ca7a84 100644 --- a/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java +++ b/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/RequestHandler.java @@ -100,7 +100,7 @@ public class RequestHandler { private RequestHandler(ServletContext context) { // init the ControllerConfig, but don't save it anywhere, just load it into the cache - this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context); + this.controllerConfigURL = ConfigXMLReader.getControllerConfigURL(context); try { ConfigXMLReader.getControllerConfig(this.controllerConfigURL); } catch (WebAppConfigurationException e) {