Avoid possible NPE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@753460 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0483252843
commit
72eedbe0ea
|
@ -83,7 +83,9 @@ public class ClientCustomContext {
|
|||
}
|
||||
|
||||
// Consume response content
|
||||
entity.consumeContent();
|
||||
if (entity != null) {
|
||||
entity.consumeContent();
|
||||
}
|
||||
|
||||
System.out.println("----------------------------------------");
|
||||
|
||||
|
|
Loading…
Reference in New Issue