Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-4384

Decision Definition XML Import fails with NullPointerException on missing input/outputType

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 3.4.0-alpha1, 3.4.0
    • None
    • backend
    • None

    Description

      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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              sebastian.bathke Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce