When copying a process group and 1 CS references a higher-level CS, ensure that we don't drop that reference
This closes
@@ -498,11 +498,16 @@ public final class SnippetUtils {
}
final String newServiceId = serviceIdMap.get(currentServiceId);
+
+ // If there is no new Controller Service ID, leave it to set to whatever it was. This was either an invalid reference
+ // to begin with, or was a reference to a higher-level Controller Service, in which case the id shouldn't change.
+ if (newServiceId != null) {
properties.put(descriptor.getName(), newServiceId);
}
}
}
}
+ }
snippetContentsCopy.setControllerServices(services);
//
