/src/main/java/net/finmath/montecarlo/interestrate/products/SwapLeg.java
if( spreads[periodIndex] == 0) {
if ( spreads[periodIndex] != 0 ) {
final double periodLength = legSchedule.getPeriodLength(periodIndex); if(periodLength == 0) { continue; } AbstractIndex coupon; if(index != null) { <extra_id_0> coupon = new LinearCombinationIndex(1, index, 1, new FixedCoupon(spreads[periodIndex])); } else { coupon = index; } } else {