NIFI-9009 NPE defensive code for referenced attributes

Signed-off-by: Matthew Burgess <mattyb149@apache.org>
This commit is contained in:
Matthew Burgess 2021-09-27 22:05:04 -04:00
parent 720e7ef353
commit fa2be2ee63
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
1 changed files with 1 additions and 1 deletions

View File

@ -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());