--- a/jdk/src/share/classes/javax/sql/rowset/serial/SerialClob.java Wed Aug 10 12:30:29 2011 +0100
+++ b/jdk/src/share/classes/javax/sql/rowset/serial/SerialClob.java Wed Aug 10 16:23:56 2011 -0400
@@ -436,7 +436,7 @@
*/
public java.io.OutputStream setAsciiStream(long pos)
throws SerialException, SQLException {
- if (this.clob.setAsciiStream(pos) != null) {
+ if (this.clob != null) {
return this.clob.setAsciiStream(pos);
} else {
throw new SerialException("Unsupported operation. SerialClob cannot " +
@@ -466,7 +466,7 @@
*/
public java.io.Writer setCharacterStream(long pos)
throws SerialException, SQLException {
- if (this.clob.setCharacterStream(pos) != null) {
+ if (this.clob != null) {
return this.clob.setCharacterStream(pos);
} else {
throw new SerialException("Unsupported operation. SerialClob cannot " +