Improve Exception when "camunda_source" variable is not set for XSLT Transformer

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 7.3.0, 7.2.3, 7.3.0-alpha1
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently you get a NPE without any clue what the problem is. If the camunda_source is not present a proper exception indicating the problem should be thrown.


      Existing NPE:
      java.lang.NullPointerException
      at org.camunda.commons.utils.IoUtil.stringAsInputStream(IoUtil.java:58)
      at org.camunda.bpm.extension.xslt.XsltScriptEngine.evaluate(XsltScriptEngine.java:106)
      at org.camunda.bpm.extension.xslt.XsltCompiledScript.eval(XsltCompiledScript.java:41)
      at javax.script.CompiledScript.eval(CompiledScript.java:92)
      at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.evaluateScript(SourceExecutableScript.java:82)
      at org.camunda.bpm.engine.impl.scripting.SourceExecutableScript.execute(SourceExecutableScript.java:54)
      at org.camunda.bpm.engine.impl.scripting.env.ScriptingEnvironment.execute(ScriptingEnvironment.java:84)
      at org.camunda.bpm.engine.impl.scripting.ScriptValueProvider.getValue(ScriptValueProvider.java:35)

            Assignee:
            Sebastian Menski
            Reporter:
            Bernd Ruecker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: