From: Mark Fursht
Sent: יום ד 17 אפריל 2019 14:27
To: '[email protected]' <[email protected]>
Cc: Ben Yaakobi <[email protected]>; Amir Bareket 
<[email protected]>; Amir Toledo <[email protected]>
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:[email protected]]


Sincerely, Mark
[cid:[email protected]]



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

Reply via email to