You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "pvillard31 (via GitHub)" <gi...@apache.org> on 2025/12/01 10:42:46 UTC

Re: [PR] NIFI-15251 - UpdateAttribute throws NullPointerException if value set to empty parameter [nifi]

pvillard31 commented on PR #10577:
URL: https://github.com/apache/nifi/pull/10577#issuecomment-3595839869

   Yeah the problem is that there is a very high chance that we use expression language against incoming FlowFile's attributes so we can't just evaluate the property value. I agree that it's not amazing to check for parameters and that the parameters are not set but that's the best approach I can think of to avoid the NPE and check things at validation step. A completely different approach would be at execution and if we have an empty value that would lead to a NPE, we just ignore the pair for updating attributes of the FlowFile.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org