Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
avatica-1.20.0
Description
The documentation for java.sql.Driver#connect states that a SQLException should be thrown "if a database access error occurs or the url is null." However, UnregisteredDriver throws a NullPointerException instead.
Steps to reproduce:
new org.apache.calcite.avatica.remote.Driver().connect(null, new Properties());
Expected result:
A SQLException is thrown
Actual result:
A NullPointerException is thrown
java.lang.NullPointerException at org.apache.calcite.avatica.UnregisteredDriver.acceptsURL(UnregisteredDriver.java:144) at org.apache.calcite.avatica.UnregisteredDriver.connect(UnregisteredDriver.java:130)
Attachments
Issue Links
- links to