We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9fda6 commit 14d037cCopy full SHA for 14d037c
1 file changed
OREData/ored/portfolio/convertiblebond.cpp
@@ -500,11 +500,13 @@ void ConvertibleBond::build(const boost::shared_ptr<ore::data::EngineFactory>& e
500
Date d1 = qlUnderlyingBond->maturityDate();
501
502
// FIXME, the following only works, if we have the dividends loaded at this point...
503
- auto div = equity->dividendFixings();
504
- for (auto const& d : div) {
505
- if (d.exDate >= d0) {
506
- requiredFixings_.addFixingDate(fx->fixingCalendar().adjust(d.exDate, Preceding),
507
- data_.conversionData().fxIndex());
+ if (equity != nullptr) {
+ auto div = equity->dividendFixings();
+ for (auto const& d : div) {
+ if (d.exDate >= d0) {
+ requiredFixings_.addFixingDate(fx->fixingCalendar().adjust(d.exDate, Preceding),
508
+ data_.conversionData().fxIndex());
509
+ }
510
}
511
512
0 commit comments