You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Mark Fursht <Ma...@solaredge.com> on 2019/04/17 11:31:29 UTC

RE: VariableDescriptor exception

From: Mark Fursht
Sent: יום ד 17 אפריל 2019 14:27
To: 'issues@nifi.apache.org' <is...@nifi.apache.org>
Cc: Ben Yaakobi <Be...@solaredge.com>; Amir Bareket <Am...@solaredge.com>; Amir Toledo <Am...@solaredge.com>
Subject: VariableDescriptor exception

Hello.
We have just added NiFi expression language to our app. Today, when I started the application from Intellij IDE, I got an exception from VariableDescriptor class, stating that “Name must not be null or empty” . Further investigation has exhibited that an empty environmental variable is sent to the constructor of VariableDescriptor.Builder class. And what caused the empty environmental variable? Checked “override parameters” box in run configuration. The box is checked, but no override parameters defined, so Intellij adds an empty parameter.  See the picture below.
My question is, why do you need to throw an exception in such a case. Isn’t is possible to ignore the empty value and issue a log warning?
Thanks, Mark.

[cid:image001.png@01D4F52A.0C693500]


Sincerely, Mark
[cid:image001.png@01D3B960.F400ABC0]



This message has been scanned for malware by Websense. www.websense.com