Skip to content

Commit

Permalink
Only set oracle.net.tns_admin if a TNS_ADMIN was found
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Dec 14, 2018
1 parent 4c452fc commit cbb4503
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/utplsql/cli/DataSourceProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ public class DataSourceProvider {

static {
if (System.getProperty("oracle.net.tns_admin") == null) {
System.setProperty("oracle.net.tns_admin", getTnsAdmin());
String tnsAdmin = getTnsAdmin();
if (tnsAdmin != null) {
System.setProperty("oracle.net.tns_admin", tnsAdmin);
}
}
}

Expand Down

0 comments on commit cbb4503

Please sign in to comment.