Permalink
Browse files

Fixed a NullPointerException case on images encoding errors.

  • Loading branch information...
luccioman committed Oct 16, 2017
1 parent 7c319c8 commit 34ca73d61b59b56a0654b9c948cdf597e1013c9e
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/net/yacy/http/servlets/YaCyDefaultServlet.java
@@ -928,7 +928,9 @@ protected void handleTemplate(String target, HttpServletRequest request, HttpSe
* as it is better handled across different browsers */
if(result == null || result.length() == 0) {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
result.close();
if(result != null) {
result.close();
}
return;
}
if (yp.isStatic()) { // static image never expires

0 comments on commit 34ca73d

Please sign in to comment.