jdk/src/share/classes/javax/sql/rowset/serial/SerialClob.java
changeset 10323 48d695d1e966
parent 9035 1255eb81cc2f
child 14337 a003c6a54cb6
--- 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 " +