Author: vyemialyanchyk
Date: 2010-10-13 12:04:31 -0400 (Wed, 13 Oct 2010)
New Revision: 25797
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
Log:
https://jira.jboss.org/browse/JBIDE-7263 - fixed
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2010-10-13
16:00:16 UTC (rev 25796)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConfigurationFactory.java 2010-10-13
16:04:31 UTC (rev 25797)
@@ -384,11 +384,11 @@
// String dialect =
//
"org.hibernate.dialect.HSQLDialect";//cpProperties.getProperty("org.eclipse.datatools.connectivity.db.driverClass");
// invoke.setProperty(Environment.DIALECT, dialect);
- String driverClass =
driverInstance.getProperty("org.eclipse.datatools.connectivity.db.driverClass");
//$NON-NLS-1$
+ String driverClass = driverInstance != null ?
+ driverInstance.getProperty("org.eclipse.datatools.connectivity.db.driverClass")
: ""; //$NON-NLS-1$ //$NON-NLS-2$
localCfg.setProperty(Environment.DRIVER, driverClass);
- // TODO:
- @SuppressWarnings("unused")
- String driverJarPath = driverInstance.getJarList();
+ //String driverJarPath = driverInstance != null ?
+ // driverInstance.getJarList() : ""; //$NON-NLS-1$
String url =
cpProperties.getProperty("org.eclipse.datatools.connectivity.db.URL");
//$NON-NLS-1$
// url += "/";// +
//
cpProperties.getProperty("org.eclipse.datatools.connectivity.db.databaseName");