fix potential java.lang.NullPointerException

This commit is contained in:
Sebastian Sdorra
2011-01-30 12:30:14 +01:00
parent 43b5b7ec15
commit 03183cd86e

View File

@@ -91,7 +91,10 @@ public class GZipResponseWrapper extends HttpServletResponseWrapper
@Override @Override
public void flushBuffer() throws IOException public void flushBuffer() throws IOException
{ {
stream.flush(); if (stream != null)
{
stream.flush();
}
} }
//~--- get methods ---------------------------------------------------------- //~--- get methods ----------------------------------------------------------