diff options
author | Roman Kennke <roman@kennke.org> | 2005-11-09 22:48:57 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-11-09 22:48:57 +0000 |
commit | aeec6c6b933be559843b04b1545e2cb44c490587 (patch) | |
tree | 5edc6e72769b5fdeeb724854c5f7ab9f7c142bfd /java | |
parent | ab9c114a2211955373095b48eafba42e72c776b8 (diff) | |
download | classpath-aeec6c6b933be559843b04b1545e2cb44c490587.tar.gz |
2005-11-09 Roman Kennke <kennke@aicas.com>
Reported by Friedjof Siebert <siebert@aicas.com>
* java/io/PrintWriter.java
(line_separator): Added default value for property to ensure
absence of null pointer exception even if property is not set.
Diffstat (limited to 'java')
-rw-r--r-- | java/io/PrintWriter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/io/PrintWriter.java b/java/io/PrintWriter.java index c47d4e5e7..5667e7050 100644 --- a/java/io/PrintWriter.java +++ b/java/io/PrintWriter.java @@ -379,7 +379,7 @@ public class PrintWriter extends Writer * This is the system dependent line separator */ private static final char[] line_separator - = System.getProperty("line.separator").toCharArray(); + = System.getProperty("line.separator", "\n").toCharArray(); /** * This method prints a line separator sequence to the stream. The value |