mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-25 19:55:35 +00:00
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 final static void main(String[] args) throws Exception {
|
||||
}
|
||||
|
||||
// Consume response content
|
||||
entity.consumeContent();
|
||||
if (entity != null) {
|
||||
entity.consumeContent();
|
||||
}
|
||||
|
||||
System.out.println("----------------------------------------");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user