Skip to content

Commit

Permalink
Fix password property in SSL tests
Browse files Browse the repository at this point in the history
The new test setup has no password so the value is null. This
patch fixes the SSL tests to not set the password in the connection
properties if it is null.
  • Loading branch information
sehrope committed Aug 9, 2015
1 parent 78a27e3 commit 9d5e465
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/org/mariadb/jdbc/SSLValidationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ private Connection createConnection(Properties info) throws SQLException {
String jdbcUrl = connURI;
Properties connProps = new Properties(info);
connProps.setProperty("user", username);
connProps.setProperty("password", password);
if( password != null ) {
connProps.setProperty("password", password);
}
return openNewConnection(jdbcUrl, connProps);
}

Expand Down

0 comments on commit 9d5e465

Please sign in to comment.