Author: dgeraskov
Date: 2010-12-10 09:40:29 -0500 (Fri, 10 Dec 2010)
New Revision: 27357
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java
Log:
https://issues.jboss.org/browse/JBIDE-7739
code improvements
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java 2010-12-10
14:37:03 UTC (rev 27356)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java 2010-12-10
14:40:29 UTC (rev 27357)
@@ -27,7 +27,8 @@
URL[] customClassPathURLsTmp = prefs == null ? new URL[0] :
prefs.getCustomClassPathURLS();
URL[] customClassPathURLs = null;
- String[] driverURLParts =
ConnectionProfileUtil.getConnectionProfileDriverURL(prefs.getConnectionProfileName());
+ String[] driverURLParts = prefs == null ? null :
+ ConnectionProfileUtil.getConnectionProfileDriverURL(prefs.getConnectionProfileName());
URL[] urls = null;
if (driverURLParts != null) {
urls = new URL[driverURLParts.length];