Skip to content

Commit 411dbd7

Browse files
Farah Khashmanjenkins
authored andcommitted
QPR-12288: check for composite trade failure
1 parent 62d52b9 commit 411dbd7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

OREData/ored/portfolio/compositetrade.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void CompositeTrade::build(const boost::shared_ptr<EngineFactory>& engineFactory
3838
fxRates_.clear();
3939
fxRatesNotional_.clear();
4040
legs_.clear();
41+
QL_REQUIRE(trades_.size() > 0, "Failed to build composite trade.");
4142
for (const boost::shared_ptr<Trade>& trade : trades_) {
4243

4344
trade->reset();

0 commit comments

Comments
 (0)