File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
ojdbc-provider-common/src/main/java/oracle/jdbc/provider/util Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ private WalletUtils() {}
114114 * </p>
115115 * <ol>
116116 * <li>
117- * <strong>If {@code connectionStringIndex} is {@code null}:</strong>
117+ * <strong>If {@code connectionStringIndex} is {@code null}, empty,
118+ * or blank:</strong>
118119 * <ul>
119120 * <li>
120121 * The method first attempts to retrieve credentials using the default
@@ -183,6 +184,11 @@ private WalletUtils() {}
183184 public static Credentials getCredentials (
184185 byte [] walletBytes , char [] walletPassword , String connectionStringIndex ) {
185186
187+ // treat blank as missing
188+ if (connectionStringIndex != null && connectionStringIndex .trim ().isEmpty ()) {
189+ connectionStringIndex = null ;
190+ }
191+
186192 OracleWallet wallet = new OracleWallet ();
187193 try {
188194 wallet .setWalletArray (walletBytes , walletPassword );
You can’t perform that action at this time.
0 commit comments