Merge \\"Frameworks/base: Fix FastPrintWriter infinite loop\\" into nyc-dev am: c82a2b5358

am: 89b7934905

Change-Id: Idaa84ae75512929656f63318db819232f42d91f7
This commit is contained in:
Andreas Gampe
2016-06-08 00:50:03 +00:00
committed by android-build-merger

View File

@@ -345,7 +345,7 @@ public class FastPrintWriter extends PrintWriter {
if (mOutputStream != null) {
CharBuffer charBuffer = CharBuffer.wrap(mText, 0, mPos);
CoderResult result = mCharset.encode(charBuffer, mBytes, true);
while (true) {
while (!mIoError) {
if (result.isError()) {
throw new IOException(result.toString());
} else if (result.isOverflow()) {