Skip to content

Commit

Permalink
[PDI-13570] - Regression: Shared DB-connections without .kdb file not…
Browse files Browse the repository at this point in the history
… showing in Spoon 5.3 - fixing an error and replacing exception with more appropriate
  • Loading branch information
Andrey Khayrutdinov committed Mar 18, 2015
1 parent 693a0ec commit 22ec621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/org/pentaho/di/ui/spoon/DatabasesCollector.java
Expand Up @@ -79,10 +79,10 @@ public DatabaseMeta getMetaFor( String dbName ) {
if ( names2metas == null ) {
throw exception();
}
return names2metas.get( dbName.toLowerCase() );
return names2metas.get( dbName );
}

private static UnsupportedOperationException exception() {
return new UnsupportedOperationException( "Call collectDatabases() first" );
private static IllegalStateException exception() {
return new IllegalStateException( "Call collectDatabases() first" );
}
}

0 comments on commit 22ec621

Please sign in to comment.