Clob.getSubString() throws NullPointerException when created by updatable 
result set
------------------------------------------------------------------------------------

                 Key: DERBY-1599
                 URL: http://issues.apache.org/jira/browse/DERBY-1599
             Project: Derby
          Issue Type: Bug
          Components: JDBC, Network Client
    Affects Versions: 10.1.3.1, 10.2.0.0
            Reporter: Knut Anders Hatlen
            Priority: Minor


If you create a clob value with one of the ResultSet.updateXXX methods that 
take a stream or a reader, and retrieve that value with ResultSet.getClob(), a 
NullPointerException will be thrown when getSubString() is called on the 
returned Clob object. This happens with the network client driver, and it has 
been observed on Derby 10.1.3.1 and trunk.

Exception in thread "main" java.lang.NullPointerException
        at org.apache.derby.client.am.Clob.getSubStringX(Clob.java:229)
        at org.apache.derby.client.am.Clob.getSubString(Clob.java:210)
        at Repro.main(Repro.java:24)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to