commit | fa2be2ee63f0e6e62ac35593e0d7540648f72363 | [log] [tgz] |
---|---|---|
author | Matthew Burgess <mattyb149@apache.org> | Mon Sep 27 22:05:04 2021 -0400 |
committer | Matthew Burgess <mattyb149@apache.org> | Mon Sep 27 22:11:29 2021 -0400 |
tree | a4f2fd58f21dea694d00b00b99cacda137bbaca6 | |
parent | 720e7ef353ac2a62836f8b5ac8b4df3422e602d9 [diff] |
NIFI-9009 NPE defensive code for referenced attributes Signed-off-by: Matthew Burgess <mattyb149@apache.org>
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 @@ 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());