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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.8, 1.5.9
    • Fix Version/s: 2.0.0-RC, 1.6.0
    • Component/s: Other
    • Labels:
      None
    • Environment:
      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

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            jbrauge Jérôme Brauge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: