Skip to content

Commit dc426db

Browse files
committed
minor refactor
1 parent 31510a9 commit dc426db

File tree

1 file changed

+2
-1
lines changed
  • imagetool/src/main/java/com/oracle/weblogic/imagetool/util

1 file changed

+2
-1
lines changed

imagetool/src/main/java/com/oracle/weblogic/imagetool/util/HttpUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,10 @@ public static HttpClient getOraClient(String userId, String password) {
124124
String proxyHost = System.getProperty("https.proxyHost");
125125
String proxyPort = System.getProperty("https.proxyPort");
126126
HttpClient result;
127-
CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
127+
CredentialsProvider credentialsProvider = null;
128128

129129
if (userId != null && password != null) {
130+
credentialsProvider = new BasicCredentialsProvider();
130131
credentialsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(
131132
userId, password));
132133
}

0 commit comments

Comments
 (0)