From bf820ba57621f024316a6a4550738ba58fda79ee Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 10 Feb 2013 10:00:48 +0200 Subject: [PATCH] handle null paths --- src/main/java/eu/svjatoslav/meviz/htmlindexer/WebIndexer.java | 3 +++ 1 file changed, 3 insertions(+) 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 = ""; -- 2.20.1