Skip to content

Commit

Permalink
Fixed NullPointerException that may happen on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby committed Feb 19, 2014
1 parent 1ac89df commit d6e78d5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ protected HttpResponse buildResult(HttpContext context) throws Exception {

@Override
protected void releaseResources() {
consumer._releaseResources();
if (consumer != null) {
consumer._releaseResources();
}
}

}

0 comments on commit d6e78d5

Please sign in to comment.