Skip to content

Commit

Permalink
Prevent access violation when an empty helper vector is passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jul 21, 2013
1 parent 33058bb commit 9596b6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ql/termstructures/iterativebootstrap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ namespace QuantLib {

ts_ = ts;
n_ = ts_->instruments_.size();
QL_REQUIRE(n_ > 0, "no bootstrap helpers given")
for (Size j=0; j<n_; ++j)
ts_->registerWith(ts_->instruments_[j]);

Expand Down

0 comments on commit 9596b6c

Please sign in to comment.