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 8ceffbe1ef..696112a219 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 @@ -1502,6 +1502,8 @@ public final class DtoFactory { processGroupId = null; } + dto.setDescriptors(new LinkedHashMap()); + dto.setProperties(new LinkedHashMap()); if (propertyDescriptors != null && !propertyDescriptors.isEmpty()) { final Map sortedProperties = new TreeMap<>(new Comparator() { @Override @@ -1518,8 +1520,6 @@ public final class DtoFactory { orderedProperties.putAll(sortedProperties); // build the descriptor and property dtos - dto.setDescriptors(new LinkedHashMap()); - dto.setProperties(new LinkedHashMap()); for (final Map.Entry entry : orderedProperties.entrySet()) { final PropertyDescriptor descriptor = entry.getKey();