From 266bd80bde15abb72e316c2386b4664c7c58a1e6 Mon Sep 17 00:00:00 2001 From: jpercivall Date: Tue, 13 Dec 2016 11:10:25 -0500 Subject: [PATCH] NIFI-3192 Adding a check if the FlowFile is null to UpdateAttribute This closes #1325 --- .../org/apache/nifi/processors/attributes/UpdateAttribute.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java b/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java index 22e558bd25..86f523ac82 100644 --- a/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java +++ b/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java @@ -393,6 +393,9 @@ public class UpdateAttribute extends AbstractProcessor implements Searchable { final Criteria criteria = criteriaCache.get(); FlowFile flowFile = session.get(); + if (flowFile == null) { + return; + } final Map properties = context.getProperties();