From: Svjatoslav Agejenko Date: Sun, 10 Feb 2013 08:00:48 +0000 (+0200) Subject: handle null paths X-Git-Tag: meviz-1.0~88 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=bf820ba57621f024316a6a4550738ba58fda79ee;p=meviz.git handle null paths --- diff --git a/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java b/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java index 199f789..6530e70 100644 --- a/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java +++ b/src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java @@ -35,6 +35,9 @@ public class WebIndexer extends AbstractIndexer { public String getHtml(String requestPath) throws MalformedURLException, IOException, ClassNotFoundException { + if (requestPath == null) + requestPath = ""; + if (requestPath.equals("/")) requestPath = "";