Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ private WalletUtils() {}
* </p>
* <ol>
* <li>
* <strong>If {@code connectionStringIndex} is {@code null}:</strong>
* <strong>If {@code connectionStringIndex} is {@code null}, empty,
* or blank:</strong>
* <ul>
* <li>
* The method first attempts to retrieve credentials using the default
Expand Down Expand Up @@ -183,6 +184,11 @@ private WalletUtils() {}
public static Credentials getCredentials(
byte[] walletBytes, char[] walletPassword, String connectionStringIndex) {

// treat blank as missing
if (connectionStringIndex != null && connectionStringIndex.trim().isEmpty()) {
connectionStringIndex = null;
}

OracleWallet wallet = new OracleWallet();
try {
wallet.setWalletArray(walletBytes, walletPassword);
Expand Down
Loading