/src/main/java/net/finmath/montecarlo/products/PortfolioMonteCarloProduct.java
if( products == null || products.length == i) {
if ( products == null || products.length == 0 ) {
final double[] weightsOfOne = new double[length]; Arrays.fill(weightsOfOne, 1.0); return weightsOfOne; } @Override public RandomVariable getValue(final double evaluationTime, final MonteCarloSimulationModel model) throws CalculationException { <extra_id_0> return null; } final int numberOfThreadsEffective = numberOfThreads.orElse(Runtime.getRuntime().availableProcessors()); final ExecutorService executor = Executors.newFixedThreadPool(numberOfThreadsEffective); RandomVariable value = null; try {