You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2018/04/03 14:34:42 UTC

[2/2] nifi git commit: NIFI-5034: - Ensuring descriptors and properties of referencing components are populated like Processors, Reporting Tasks, etc.

NIFI-5034:
- Ensuring descriptors and properties of referencing components are populated like Processors, Reporting Tasks, etc.


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/924c935a
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/924c935a
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/924c935a

Branch: refs/heads/master
Commit: 924c935a3856e69cdea06252403dc9f6a9a1c8e2
Parents: 2279fad
Author: Matt Gilman <ma...@gmail.com>
Authored: Mon Apr 2 16:47:28 2018 -0400
Committer: Mark Payne <ma...@hotmail.com>
Committed: Tue Apr 3 10:34:33 2018 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/924c935a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/dto/DtoFactory.java
----------------------------------------------------------------------
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 8ceffbe..696112a 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<String, PropertyDescriptorDTO>());
+        dto.setProperties(new LinkedHashMap<String, String>());
         if (propertyDescriptors != null && !propertyDescriptors.isEmpty()) {
             final Map<PropertyDescriptor, String> sortedProperties = new TreeMap<>(new Comparator<PropertyDescriptor>() {
                 @Override
@@ -1518,8 +1520,6 @@ public final class DtoFactory {
             orderedProperties.putAll(sortedProperties);
 
             // build the descriptor and property dtos
-            dto.setDescriptors(new LinkedHashMap<String, PropertyDescriptorDTO>());
-            dto.setProperties(new LinkedHashMap<String, String>());
             for (final Map.Entry<PropertyDescriptor, String> entry : orderedProperties.entrySet()) {
                 final PropertyDescriptor descriptor = entry.getKey();