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:
Sebastian Bazley 2009-03-13 22:35:53 +00:00
parent 0483252843
commit 72eedbe0ea
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ public class ClientCustomContext {
}
// Consume response content
entity.consumeContent();
if (entity != null) {
entity.consumeContent();
}
System.out.println("----------------------------------------");