Fix NPE in ServletServerHttpResponse.ResponseBodyProcessor.write
Issue: SPR-14941
This commit is contained in:
committed by
Arjen Poutsma
parent
14eba5034d
commit
6f222609c2
@@ -221,9 +221,11 @@ abstract class AbstractResponseBodyProcessor implements Processor<DataBuffer, Vo
|
||||
if (dataBuffer.readableByteCount() == 0) {
|
||||
processor.subscription.request(1);
|
||||
}
|
||||
else if (processor.changeState(this, RECEIVED)) {
|
||||
else {
|
||||
processor.receiveBuffer(dataBuffer);
|
||||
processor.writeIfPossible();
|
||||
if (processor.changeState(this, RECEIVED)) {
|
||||
processor.writeIfPossible();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user