Github user brosander commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1371#discussion_r94175346
--- Diff:
nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
---
@@ -424,59 +419,104 @@ public void onTrigger(final ProcessContext context,
final ProcessSession session
// because is the original flowfile is used for all matching
rules. in this
// case the order of the matching rules is preserved in the list
final Map<FlowFile, List<Rule>> matchedRules = new HashMap<>();
- Map<String, String> statefulAttributes = null;
+
+ final Map<String, String> stateInitialAttributes;
+ final Map<String, String> stateWorkingAttributes;
+ StateMap stateMap = null;
matchedRules.clear();
--- End diff --
not part of your changes but do we just want to be really sure the matched
rules map instantiated above was empty?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---