* java/io/OutputStreamWriter.java (flush): Create work if null.

From-SVN: r115647
This commit is contained in:
Mark Wielaard 2006-07-21 19:13:22 +00:00
parent b247341e06
commit 099cf3548a
2 changed files with 7 additions and 1 deletions

View file

@ -203,6 +203,8 @@ public class OutputStreamWriter extends Writer
// Always write -- if we are close()ing then we want to make
// sure the converter is flushed.
if (work == null)
work = new char[100];
writeChars(work, 0, wcount);
wcount = 0;