From 6c9d8c58d3ed710f87c26820d903bb8aad81754f Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Tue, 27 Sep 2011 19:25:59 -0400 Subject: Fix NPE in DefaultRequestDirector When the HTTP client encountered a server failure while talking through a proxy, it fails with an NullPointerException and not an IOException. Bug: http://b/5372438 Change-Id: I67848d52f5d01c9e353fcc7d66d48ec821d9b4ba --- src/org/apache/http/impl/client/DefaultRequestDirector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/apache/http/impl/client/DefaultRequestDirector.java b/src/org/apache/http/impl/client/DefaultRequestDirector.java index bfdddd6..9f6d832 100644 --- a/src/org/apache/http/impl/client/DefaultRequestDirector.java +++ b/src/org/apache/http/impl/client/DefaultRequestDirector.java @@ -452,7 +452,7 @@ public class DefaultRequestDirector implements RequestDirector { managedConn.open(route, context, params); } else { // otherwise give up - retrying = false; + throw ex; } } -- cgit v1.1