Skip to content

Commit

Permalink
Merge pull request Azure#1015 from anuchandy/resources-create
Browse files Browse the repository at this point in the history
Exposing Create and CreateAsync in collection that takes variable number of Creatables
  • Loading branch information
jianghaolu authored Aug 10, 2016
2 parents ca25c1c + 44a1519 commit c039c6e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ public boolean isCancelled() {
*
* @param call the call
*/
private void addCall(ServiceCall<?> call) {
this.serviceCalls.add(call);
private void addCall(ServiceCall call) {
if (call != null) {
this.serviceCalls.add(call);
}
}
}
}

0 comments on commit c039c6e

Please sign in to comment.