[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small patch: java/io/PrintStream.java
From: |
Andrew Haley |
Subject: |
Small patch: java/io/PrintStream.java |
Date: |
Fri, 8 Aug 2003 19:20:24 +0100 |
Hi everyone, I'm aph, gcj maintainer.
I've joined in order to merge bug fixes I make to libngcj into
Classpath. Here's my first.
Andrew.
2003-08-07 Andrew Haley <address@hidden>
* java/io/PrintStream.java (print(String)): Don't crash on a null
string.
Index: PrintStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/PrintStream.java,v
retrieving revision 1.21
diff -u -r1.21 PrintStream.java
--- PrintStream.java 28 Jun 2003 08:27:29 -0000 1.21
+++ PrintStream.java 7 Aug 2003 15:45:08 -0000
@@ -256,7 +256,7 @@
{
pw.print (str);
- if (auto_flush)
+ if (str != null && auto_flush)
if ((str.indexOf ('\r') != -1)
|| (str.indexOf ('\n') != -1))
flush ();
- Small patch: java/io/PrintStream.java,
Andrew Haley <=