Skip to content

Commit 43b48bb

Browse files
committed
QPR-11765 handle case of null fixing days in coupon pricer
1 parent a2b1cac commit 43b48bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ql/cashflows/couponpricer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace QuantLib {
6262
if (useIndexedCoupon_) {
6363
coupon.fixingEndDate_ = coupon.fixingMaturityDate_;
6464
} else {
65-
if (coupon.isInArrears_)
65+
if (coupon.isInArrears_ || coupon.fixingDays_ == Null<Size>())
6666
coupon.fixingEndDate_ = coupon.fixingMaturityDate_;
6767
else { // par coupon approximation
6868
Date nextFixingDate = coupon.iborIndex()->fixingCalendar().advance(

0 commit comments

Comments
 (0)