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:
Shalin Shekhar Mangar 2009-04-05 23:06:52 +00:00
parent 4d5f12e417
commit d653d93305
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}
}