Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-847

NPE at UpdatableResultSet#close

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.2
    • Component/s: Other
    • Labels:
      None
    • Environment:
      10.2.31-MariaDB-log
      JDBC 2.7.1
      Java 8

      Description

      There is an NPE that was found in JDBC 2.7.1 and it was OK on 2.6.2.
      Probably it's regression of CONJ-837: https://github.com/mariadb-corporation/mariadb-connector-j/commit/efb19400e6bc3c707de9cf00291a49ed732c6ec0

      java.lang.NullPointerException
      	at org.mariadb.jdbc.internal.com.read.resultset.UpdatableResultSet.close(UpdatableResultSet.java:1473)
      	at org.togglz.core.util.DbUtils.closeQuietly(DbUtils.java:33)
      	at org.togglz.core.repository.jdbc.SchemaUpdater.migrateToVersion2(SchemaUpdater.java:92)
      

      SchemaUpdater code exists here: https://github.com/togglz/togglz/blob/d4a887ec84748c837c2a1ed6007ff87c48480241/core/src/main/java/org/togglz/core/repository/jdbc/SchemaUpdater.java

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              diego dupin Diego Dupin
              Reporter:
              echipachenko Yevhen Chypachenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: