diff --git a/eno-core/src/main/java/fr/insee/eno/core/processing/out/steps/lunatic/LunaticAddShapeToCalculatedVariables.java b/eno-core/src/main/java/fr/insee/eno/core/processing/out/steps/lunatic/LunaticAddShapeToCalculatedVariables.java index 798a6bb74..d4f482169 100644 --- a/eno-core/src/main/java/fr/insee/eno/core/processing/out/steps/lunatic/LunaticAddShapeToCalculatedVariables.java +++ b/eno-core/src/main/java/fr/insee/eno/core/processing/out/steps/lunatic/LunaticAddShapeToCalculatedVariables.java @@ -25,6 +25,7 @@ public LunaticAddShapeToCalculatedVariables(EnoQuestionnaire enoQuestionnaire, S @Override public void apply(Questionnaire lunaticQuestionnaire) { List lunaticCalculatedVariables = lunaticQuestionnaire.getVariables().stream() + .filter(VariableType.class::isInstance) .map(VariableType.class::cast) .filter(variableType -> variableType.getVariableType().equals(VariableTypeEnum.CALCULATED)) .toList();