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

NPE on setClientInfo if value is an empty string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.5.8, 1.5.9
    • 2.0.0-RC, 1.6.0
    • Other
    • None
    • Windows 10

    Description

      Call of setClientInfo with an empty string ("") fail:

      Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(String.java:658)
      at org.mariadb.jdbc.MariaDbConnection.setClientInfo(MariaDbConnection.java:1152)
      at testmariadb.<init>(testmariadb.java:39)
      at testmariadb.main(testmariadb.java:17)

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            jbrauge Jérôme Brauge
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.