NissimShiman commented on code in PR #8946:
URL: https://github.com/apache/nifi/pull/8946#discussion_r1644858453


##########
nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/dto/status/ProcessGroupStatusSnapshotDTO.java:
##########
@@ -563,28 +563,66 @@ public ProcessGroupStatusSnapshotDTO clone() {
 
         other.setProcessingNanos(getProcessingNanos());
 
-        
other.setConnectionStatusSnapshots(copy(getConnectionStatusSnapshots()));
-        other.setProcessorStatusSnapshots(copy(getProcessorStatusSnapshots()));
-        
other.setRemoteProcessGroupStatusSnapshots(copy(getRemoteProcessGroupStatusSnapshots()));
-        other.setInputPortStatusSnapshots(copy(getInputPortStatusSnapshots()));
-        
other.setOutputPortStatusSnapshots(copy(getOutputPortStatusSnapshots()));
+        if (getConnectionStatusSnapshots() != null) {
+            final List<ConnectionStatusSnapshotEntity> 
collectionStatusSnapshotEntities = new ArrayList<>();
+            for (final ConnectionStatusSnapshotEntity 
connectionStatusSnapshotEntity :  getConnectionStatusSnapshots()) {

Review Comment:
   Thank you @exceptionfactory for looking at this and for the observations.
   Modifications were pushed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to