Github user pvillard31 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2560#discussion_r175285159
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/PutMongo.java
 ---
    @@ -137,6 +151,31 @@
             return propertyDescriptors;
         }
     
    +    @Override
    +    protected Collection<ValidationResult> customValidate(final 
ValidationContext validationContext) {
    +        List<ValidationResult> problems = new ArrayList<>();
    +
    +        final boolean queryKey = 
validationContext.getProperty(UPDATE_QUERY_KEY).isSet()
    +                && 
!StringUtils.isBlank(validationContext.getProperty(UPDATE_QUERY_KEY).getValue());
    --- End diff --
    
    You don't need to check that if my previous comment is valid (since, if a 
value is set, the validator will check that's the value is not empty)


---

Reply via email to