jdk/src/share/classes/javax/sql/rowset/serial/SerialBlob.java
changeset 10323 48d695d1e966
parent 7544 85a0e84bb9a0
child 11129 f9ad1aadf3fa
--- a/jdk/src/share/classes/javax/sql/rowset/serial/SerialBlob.java	Wed Aug 10 12:30:29 2011 +0100
+++ b/jdk/src/share/classes/javax/sql/rowset/serial/SerialBlob.java	Wed Aug 10 16:23:56 2011 -0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -382,7 +382,7 @@
      */
     public java.io.OutputStream setBinaryStream(long pos)
         throws SerialException, SQLException {
-        if (this.blob.setBinaryStream(pos) != null) {
+        if (this.blob != null) {
             return this.blob.setBinaryStream(pos);
         } else {
             throw new SerialException("Unsupported operation. SerialBlob cannot " +