/src/main/java/net/finmath/montecarlo/interestrate/products/components/ExposureEstimator.java
if ( liborPeriodIndex < 0) {   liborPeriodIndex = ( -liborPeriodIndex) - 1; }
[Delete]
basisFunction = basisFunction.discount(rate, periodLength2); basisFunction = basisFunction.discount(rate, periodLength2); } basisFunction = model.getRandomVariableForConstant(1.0); liborPeriodIndex = model.getLiborPeriodIndex(evaluationTime); if(liborPeriodIndex < 0) { <extra_id_0> } liborPeriodIndexEnd = model.getNumberOfLibors(); final double periodLength3 = model.getLiborPeriod(liborPeriodIndexEnd) - model.getLiborPeriod(liborPeriodIndex); if(periodLength3 != periodLength1 && periodLength3 != periodLength2) { rate = model.getForwardRate(evaluationTime, model.getLiborPeriod(liborPeriodIndex), model.getLiborPeriod(liborPeriodIndexEnd)); basisFunction = basisFunction.discount(rate, periodLength3);