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

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