You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Justin Rittenhouse (JIRA)" <ji...@apache.org> on 2018/08/16 20:53:00 UTC
[jira] [Created] (NIFI-5528) a literal() expression parses null
values as the word "null"
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)