Justin Rittenhouse created NIFI-5528:
----------------------------------------

             Summary: a literal() expression parses null values as the word 
"null"
                 Key: NIFI-5528
                 URL: https://issues.apache.org/jira/browse/NIFI-5528
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Justin Rittenhouse


Example:

I have the ReplaceText processor set up with a regular expression using capture 
groups.  I am referring to the value of an attribute via the capture groups:

literal(${${'$2'}}):isEmpty()

if the attribute referred to by the $2 capture group reference is either empty 
or doesn't exist, literal will return "null".  The above code will permanently 
return false because of this.

literal(${${'$2'}}):equals("null")

This works as a workaround.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to