Dir listing crashes if no readme-file present
Catch NamingException on resource not found instead of checking for null
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@618150
13f79535-47bb-0310-9956-
ffa450edef68
return buffer.toString();
}
} catch (NamingException e) {
- throw new ServletException("Error opening readme resource", e);
+ if (debug > 10)
+ log("readme '" + readmeFile + "' not found", e);
+
+ return null;
}
}
return is;
}
} catch (NamingException e) {
- throw new ServletException("Error opening XSLT resource", e);
+ if (debug > 10)
+ log("localXsltFile '" + localXsltFile + "' not found", e);
+
+ return null;
}
}