Skip to content

Commit

Permalink
IDDES-1526 NPE In JdbcManagerImpl Starting With Clean Workspace And R…
Browse files Browse the repository at this point in the history
…unning JDBC Importer

Fixes an NPE in JdbcDataseImpl for driver name.
  • Loading branch information
elvisisking committed Nov 1, 2012
1 parent 05e750b commit 9b63132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static JdbcManager create( final String name ) {
}

/**
* @return The shared instance of this class.
* @return The shared instance of this class (can be <code>null</code>)
* @since 5.0
*/
public static JdbcManager get() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ public Includes getIncludes() {
public IStatus selectDefaultNodes( String username ) {
try {
String driverName = this.getDatabaseInfo().getDriverName();
if( driverName.toUpperCase().contains("TEIID") ) { //$NON-NLS-1$
if( driverName != null && driverName.toUpperCase().contains("TEIID") ) { //$NON-NLS-1$
return Status.OK_STATUS;
}
boolean isExcelOrAccess = false;
Expand Down

0 comments on commit 9b63132

Please sign in to comment.