Skip to content

Commit

Permalink
[#2726] Handle when there is no entity; fixed-in-qa
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel McCallum committed Jan 3, 2011
1 parent 3c217f5 commit cafb4fe
Showing 1 changed file with 8 additions and 4 deletions.
Expand Up @@ -207,11 +207,15 @@ public String handleResponse(HttpResponse response)
}

entity = response.getEntity();
if (entity.getContentType() != null) {
contentType = entity.getContentType().getValue();
if (entity != null) {
if (entity.getContentType() != null) {
contentType = entity.getContentType().getValue();
}
is = entity.getContent();
charset = EntityUtils.getContentCharSet(entity);
} else {
is = null;
}
is = entity.getContent();
charset = EntityUtils.getContentCharSet(entity);

responseData = null;

Expand Down

0 comments on commit cafb4fe

Please sign in to comment.