mirror of https://github.com/apache/lucene.git
SOLR-1058 followup -- Fix check for driver attribute
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@762184 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d5f12e417
commit
d653d93305
|
@ -113,7 +113,7 @@ public class JdbcDataSource extends
|
|||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Could not load driver: " + driver, e);
|
||||
}
|
||||
} else {
|
||||
if(jndiName != null){
|
||||
if(jndiName == null){
|
||||
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Driver must be specified");
|
||||
}
|
||||
}
|
||||
|
@ -373,8 +373,8 @@ public class JdbcDataSource extends
|
|||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
conn.close();
|
||||
} finally {
|
||||
super.finalize();
|
||||
} finally {
|
||||
super.finalize();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue