This is an automated email from the ASF dual-hosted git repository.
mattyb149 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new fa2be2e NIFI-9009 NPE defensive code for referenced attributes
fa2be2e is described below
commit fa2be2ee63f0e6e62ac35593e0d7540648f72363
Author: Matthew Burgess <[email protected]>
AuthorDate: Mon Sep 27 22:05:04 2021 -0400
NIFI-9009 NPE defensive code for referenced attributes
Signed-off-by: Matthew Burgess <[email protected]>
---
.../src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
index abbf126..f5009fa 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
@@ -4145,7 +4145,7 @@ public final class DtoFactory {
copy.setParentGroupId(original.getParentGroupId());
copy.setName(original.getName());
copy.setProperties(copy(original.getProperties()));
- copy.setReferencedAttributes(new
HashSet<>(original.getReferencedAttributes()));
+ copy.setReferencedAttributes(copy(original.getReferencedAttributes()));
copy.setReferencingComponents(copy(original.getReferencingComponents()));
copy.setState(original.getState());
copy.setType(original.getType());