Skip to content

Commit

Permalink
Set progress to NULL_PROGRESS_CALLBACK if callback is null
Browse files Browse the repository at this point in the history
  • Loading branch information
aried3r authored and kevinsawicki committed Jan 5, 2014
1 parent a122db7 commit 998f413
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2608,9 +2608,10 @@ public void onProgress(int totalWritten, int total) { }
* @return this request
*/
public HttpRequest progress(final ProgressCallback callback) {
if (callback != null) {
if (callback == null)
progress = NULL_PROGRESS_CALLBACK;
else
progress = callback;
}
return this;
}

Expand Down

0 comments on commit 998f413

Please sign in to comment.