Matt Burgess created NIFI-8730:
----------------------------------

             Summary: ECMAScript engine throws NPE when script is empty
                 Key: NIFI-8730
                 URL: https://issues.apache.org/jira/browse/NIFI-8730
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Matt Burgess


As of NIFI-8625, script engines that aren't Invocable are filtered out from the 
list of available engines to choose for most scripting components (except for 
ExecuteScript and ScriptedTransformRecord at the time of this writing) as all 
other scripting components require an Invocable script engine. However this 
causes ECMAScript to be the default engine, and it throws a 
NullPointerException when the script body is empty (which it is when the 
processor is first created).

Rather than make a different engine be the default (which could be done under a 
different Jira), it is better to not try to create the ScriptRunner and/or 
evaluate the script if the body is empty.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to