Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1599

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 10.1.3.1, 10.2.1.6
    • None
    • JDBC, Network Client
    • Normal
    • High Value Fix, Repro attached

    Description

      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)

      Attachments

        1. Repro.java
          1.0 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              knutanders Knut Anders Hatlen
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: