-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
S
Context:
The input/Output clause type in a DMN model is optional to set, however Optimize requires the type to be present in the import leading to the following NPE:
08:54:29.305 [ThreadPoolTaskScheduler-1] ERROR o.c.o.s.i.e.m.DecisionDefinitionXmlEngineImportMediator - Was not able to import next page, retrying after sleeping for 1500ms. java.lang.NullPointerException: null at org.camunda.optimize.dto.optimize.query.variable.VariableType.getTypeForId(VariableType.java:54) at org.camunda.optimize.service.util.DmnModelUtility.extractInputVariablesFromDecision(DmnModelUtility.java:99) at org.camunda.optimize.service.util.DmnModelUtility.lambda$extractVariables$2(DmnModelUtility.java:88) at java.base/java.util.Optional.map(Optional.java:265)
Given:
A dmn model is deployed on the engine where some input/outputClauses have no explicit type assigned
When:
Optimize imports the XML of this model
Then:
I fails with a NPE
Expected:
It should either determine the type or skip this variable