Fixes #318470 (NPE caused by unboxing of field _persistent in HttpGenerator).
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2059 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
4780583ff0
commit
78cafd343a
|
@ -17,12 +17,12 @@ import java.io.IOException;
|
|||
import java.io.InterruptedIOException;
|
||||
|
||||
import org.eclipse.jetty.io.Buffer;
|
||||
import org.eclipse.jetty.io.BufferCache.CachedBuffer;
|
||||
import org.eclipse.jetty.io.BufferUtil;
|
||||
import org.eclipse.jetty.io.Buffers;
|
||||
import org.eclipse.jetty.io.ByteArrayBuffer;
|
||||
import org.eclipse.jetty.io.EndPoint;
|
||||
import org.eclipse.jetty.io.EofException;
|
||||
import org.eclipse.jetty.io.BufferCache.CachedBuffer;
|
||||
import org.eclipse.jetty.util.StringUtil;
|
||||
import org.eclipse.jetty.util.log.Log;
|
||||
|
||||
|
@ -885,7 +885,7 @@ public class HttpGenerator extends AbstractGenerator
|
|||
{
|
||||
if (_state == STATE_FLUSHING)
|
||||
_state = STATE_END;
|
||||
if (_state==STATE_END && !_persistent && _status!=100 && _method==null)
|
||||
if (_state==STATE_END && _persistent != null && !_persistent && _status!=100 && _method==null)
|
||||
_endp.shutdownOutput();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue