Skip to content

Commit 00f04ef

Browse files
pcaspersjenkins
authored andcommitted
QPR-12295 avoid seg fault during inf-jy calibration (FMS project)
1 parent dab5118 commit 00f04ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OREData/ored/model/utilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ map<Date, HelperValues> jyHelperValues(const vector<boost::shared_ptr<Calibratio
114114
if (ctr < times.size())
115115
kv.second.maturity = times[ctr++];
116116
else
117-
kv.second.maturity = times.back();
117+
kv.second.maturity = times.empty() ? 0.0 : times.back();
118118
}
119119

120120
return result;

0 commit comments

Comments
 (0)