Skip to content

Commit

Permalink
Fix add db connection (#3916)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhorvath authored Apr 2, 2022
1 parent 5812c4c commit 59d5dad
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.netbeans.api.db.explorer.ConnectionManager;
import org.netbeans.api.db.explorer.DatabaseConnection;
import org.netbeans.api.db.explorer.DatabaseException;
Expand Down Expand Up @@ -100,7 +97,7 @@ public void actionPerformed(ActionEvent ev) {
return;
}
}
String dbUrl = MessageFormat.format(URL_TEMPLATE, context.getConnectionName(), walletPath);
String dbUrl = MessageFormat.format(URL_TEMPLATE, connectionName, walletPath);
DatabaseConnection dbConn = DatabaseConnection.create(
drivers[0],
dbUrl,
Expand Down

0 comments on commit 59d5dad

Please sign in to comment.