Derby
  1. Derby
  2. DERBY-1599

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1.3.1, 10.2.1.6
    • Fix Version/s: None
    • Component/s: JDBC, Network Client
    • Urgency:
      Normal
    • Issue & fix info:
      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)

      1. Repro.java
        1.0 kB
        Knut Anders Hatlen

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Knut Anders Hatlen
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development