Skip to content

Commit 8c74c69

Browse files
committed
ESDK-3407 Fixed java possible fall-through into case warning.
1 parent a357b99 commit 8c74c69

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Java/Eta/ValueAdd/src/main/java/com/thomsonreuters/upa/valueadd/reactor/RestProxyAuthHandler.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,11 @@ private int execute(HttpRequestBase httpRequest, RestConnectOptions connOptions,
150150
{
151151
Header header = response.getFirstHeader("Location");
152152
try {
153-
if( header != null )
153+
if( header != null && header.getValue() != null)
154154
{
155-
String newHost = header.getValue();
156-
if ( newHost != null )
157-
{
158-
httpRequest.setURI(new URI(newHost));
159-
done = false;
160-
break;
161-
}
155+
httpRequest.setURI(new URI(header.getValue()));
156+
done = false;
157+
break;
162158
}
163159
else
164160
{

0 commit comments

Comments
 (0)