nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Witt <joe.w...@gmail.com>
Subject Re: Question on isExpressionLanguagePresent
Date Sun, 03 Sep 2017 17:28:57 GMT
Yep.  Please file a jira.

Thanks

On Sep 3, 2017 11:20 AM, "Uwe@Moosheimer.com" <Uwe@moosheimer.com> wrote:

> Dear Experts,
>
> the following code throws a NPE:
>
>     /PropertyValue property = context.getProperty(SOME_PROPERTY);//
>     //if (property.isExpressionLanguagePresent()) {/
>
> when the property is not set (NULL).
>
> So I have to write
>
>     /PropertyValue property = context.getProperty(SOME_PROPERTY);//
>     //if (property.isSet() && property.isExpressionLanguagePresent()) {
>     /
>
> Wouldn't it be great if the method isExpressionLanguagePreset() would
> check for NULL and then return false?
>
> Best Regards,
> Uwe
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message