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

Nullpointer-Exception in Select-Statement

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7
    • Other
    • None
    • Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
      Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
      NetBeans IDE 8.2 (Build 201609300101)

    Description

      The following statement on a remote database throws the shown exception:

      use s12db1;
      select * from machines;

      Exception shown in Netbeans Notifications:

      java.lang.NullPointerException
      at org.mariadb.jdbc.internal.queryresults.resultset.MariaSelectResultSet.close(MariaSelectResultSet.java:483)
      at org.netbeans.modules.db.dataview.util.DataViewUtils.closeResources(DataViewUtils.java:195)
      at org.netbeans.modules.db.dataview.meta.DBMetaDataFactory.getForeignKeys(DBMetaDataFactory.java:179)
      at org.netbeans.modules.db.dataview.meta.DBMetaDataFactory.checkForeignKeys(DBMetaDataFactory.java:408)
      at org.netbeans.modules.db.dataview.meta.DBMetaDataFactory.postprocessTables(DBMetaDataFactory.java:320)
      [catch] at org.netbeans.modules.db.dataview.output.SQLExecutionHelper$1Loader.run(SQLExecutionHelper.java:174)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

      Error does not occur in version 1.5.5.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              schrotti12 Andreas Gottardi
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.