@@ -147,10 +147,11 @@ void CrossCcyBasisSwapHelper::initializeDates() {
147147
148148 /* Arbitrarily set the spread leg as the pay leg */
149149 swap_ = QuantLib::ext::make_shared<CrossCcyBasisSwap>(
150- spreadLegNominal, spreadLegCurrency_, spreadLegSchedule, spreadIndex_, quote ().empty () ? 0.0 : quote ()->value (),
151- spreadGearing_, flatLegNominal, flatLegCurrency_, flatLegSchedule, flatIndex_, spreadOnFlatLeg_, flatGearing_,
152- paymentLag_, flatPaymentLag_, includeSpread_, lookback_, fixingDays_, rateCutoff_, isAveraged_,
153- flatIncludeSpread_, flatLookback_, flatFixingDays_, flatRateCutoff_, flatIsAveraged_, telescopicValueDates_);
150+ spreadLegNominal, spreadLegCurrency_, spreadLegSchedule, spreadIndex_,
151+ quote ().empty () || !quote ().isValid () ? 0.0 : quote ()->value (), spreadGearing_, flatLegNominal,
152+ flatLegCurrency_, flatLegSchedule, flatIndex_, spreadOnFlatLeg_, flatGearing_, paymentLag_, flatPaymentLag_,
153+ includeSpread_, lookback_, fixingDays_, rateCutoff_, isAveraged_, flatIncludeSpread_, flatLookback_,
154+ flatFixingDays_, flatRateCutoff_, flatIsAveraged_, telescopicValueDates_);
154155
155156 QuantLib::ext::shared_ptr<PricingEngine> engine;
156157 if (flatIsDomestic_) {
0 commit comments