From f6f554b66ac63710897004a31172d644b9f23688 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 2 Nov 2011 19:18:18 +0000 Subject: No exception when viewing page directly git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@987 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUOnline/src/main/webapp/404.jsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'BKUOnline/src/main/webapp/404.jsp') diff --git a/BKUOnline/src/main/webapp/404.jsp b/BKUOnline/src/main/webapp/404.jsp index c4a351ce..3178f597 100644 --- a/BKUOnline/src/main/webapp/404.jsp +++ b/BKUOnline/src/main/webapp/404.jsp @@ -1,6 +1,7 @@ <% String redirectURL = pageContext.getServletContext().getContextPath(); - if (pageContext.getErrorData().getRequestURI().contains("/help/")) + if (pageContext.getErrorData().getRequestURI() != null && + pageContext.getErrorData().getRequestURI().contains("/help/")) redirectURL += "/help/de/404h.html"; else redirectURL += "/help/de/404.html"; -- cgit v1.2.3