Mercurial > hg > LGServices
changeset 7:ae3ebafabb7f
fixing a bug, when the FilterChain is null.
author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
---|---|
date | Thu, 21 May 2015 14:25:51 +0200 |
parents | 0378dbd683b8 |
children | 58f574700474 |
files | src/main/java/de/mpiwg/web/jsp/utils/CharsetFilter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/web/jsp/utils/CharsetFilter.java Thu May 21 11:11:46 2015 +0200 +++ b/src/main/java/de/mpiwg/web/jsp/utils/CharsetFilter.java Thu May 21 14:25:51 2015 +0200 @@ -31,7 +31,9 @@ response.setContentType("text/html; charset=UTF-8"); response.setCharacterEncoding("UTF-8"); - next.doFilter(request, response); + if(next != null){ + next.doFilter(request, response); + } } public void destroy() {