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 2023/02/28 11:49:52 UTC

[GitHub] [nifi] pvillard31 commented on a diff in pull request #6991: NIFI-11224 - FF attribute support in Where condition of QuerySalesforceObject

pvillard31 commented on code in PR #6991:
URL: https://github.com/apache/nifi/pull/6991#discussion_r1119946978


##########
nifi-nar-bundles/nifi-salesforce-bundle/nifi-salesforce-processors/src/main/java/org/apache/nifi/processors/salesforce/QuerySalesforceObject.java:
##########
@@ -326,24 +326,24 @@ protected Collection<ValidationResult> customValidate(ValidationContext validati
     public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException {
         boolean isCustomQuery = CUSTOM_QUERY.getValue().equals(context.getProperty(QUERY_TYPE).getValue());
 
+        FlowFile flowFile = session.get();

Review Comment:
   Thanks for the review, since we do want to evaluate EL wether the FlowFile is null or not, I added a null check in the ``processQuery`` part.



-- 
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