Skip to content

Commit

Permalink
Possible null pointer dereference of huc in com.zaubersoftware.gnip4j…
Browse files Browse the repository at this point in the history
….api.support.http.JRERemoteResourceProvider.getResouce(URI)
  • Loading branch information
Juan F. Codagnone committed May 26, 2011
1 parent 13f6405 commit aee5a89
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public final InputStream getResouce(final URI uri) throws AuthenticationGnipExce
doConfiguration(uc);
uc.connect();

validateStatusLine(uri, huc == null ? 200 : huc.getResponseCode(), huc.getResponseMessage());

if(huc != null) {
validateStatusLine(uri, huc.getResponseCode(), huc.getResponseMessage());
}
InputStream is = uc.getInputStream();
final String encoding = uc.getContentEncoding();
if (encoding != null && encoding.equalsIgnoreCase("gzip")) {
Expand Down

0 comments on commit aee5a89

Please sign in to comment.