https://issues.apache.org/bugzilla/show_bug.cgi?id=47439
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@789116
13f79535-47bb-0310-9956-
ffa450edef68
throw ex;
}
}
+ if (connection==null) {
+ throw new SQLException("Driver:"+driver+" returned null for URL:"+driverURL);
+ }
+
//set up the default state, unless we expect the interceptor to do it
if (poolProperties.getJdbcInterceptors()==null || poolProperties.getJdbcInterceptors().indexOf(ConnectionState.class.getName())<0) {
if (poolProperties.getDefaultReadOnly()!=null) connection.setReadOnly(poolProperties.getDefaultReadOnly().booleanValue());