diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ErrorPageErrorHandler.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ErrorPageErrorHandler.java index abeb47214ff9..54ba33c1f307 100644 --- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ErrorPageErrorHandler.java +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/ErrorPageErrorHandler.java @@ -182,8 +182,10 @@ public String getErrorPage(HttpServletRequest request) * @param t the initial exception * @return the first non {@link ServletException} from root cause chain */ - private Throwable getFirstNonServletException(Throwable t) { - if(t instanceof ServletException && t.getCause()!=null) { + private Throwable getFirstNonServletException(Throwable t) + { + if (t instanceof ServletException && t.getCause() != null) + { return getFirstNonServletException(t.getCause()); } return t;