handle no jetty-dir css

This commit is contained in:
Greg Wilkins 2011-12-02 09:43:15 +11:00
parent de005c68fd
commit 7e9fbc7493
1 changed files with 4 additions and 2 deletions

View File

@ -369,8 +369,10 @@ public class ResourceHandler extends AbstractHandler
{
if (target.endsWith("/jetty-dir.css"))
{
response.setContentType("text/css");
resource = getStylesheet();
if (resource==null)
return;
response.setContentType("text/css");
}
else
return;