Github user MikeThomsen commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2546#discussion_r181035376
--- Diff:
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/AbstractMongoProcessor.java
---
@@ -229,7 +252,9 @@ protected MongoDatabase getDatabase(final
ProcessContext context, final FlowFile
}
protected MongoCollection<Document> getCollection(final ProcessContext
context, final FlowFile flowFile) {
- final String collectionName =
context.getProperty(COLLECTION_NAME).evaluateAttributeExpressions(flowFile).getValue();
+ final String collectionName = flowFile == null
--- End diff --
Done.
---