NIFI-3192 Adding a check if the FlowFile is null to UpdateAttribute

This closes #1325
This commit is contained in:
jpercivall 2016-12-13 11:10:25 -05:00 committed by Matt Burgess
parent 868795cdaa
commit 266bd80bde
1 changed files with 3 additions and 0 deletions

View File

@ -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<PropertyDescriptor, String> properties = context.getProperties();