Repository: incubator-nifi
Updated Branches:
  refs/heads/NIFI-250 c61a2afbb -> ffb4e6b68


NIFI-250:
- Only attempting to reload a controller service when one is actually 
referenced.

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

Branch: refs/heads/NIFI-250
Commit: ffb4e6b68b57f23b41703613557f7bf0da5bbce5
Parents: c61a2af
Author: Matt Gilman <[email protected]>
Authored: Thu Mar 26 09:13:23 2015 -0400
Committer: Matt Gilman <[email protected]>
Committed: Thu Mar 26 09:13:23 2015 -0400

----------------------------------------------------------------------
 .../src/main/webapp/js/nf/canvas/nf-controller-service.js        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/ffb4e6b6/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js
index 40db232..5c55172 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-service.js
@@ -1608,7 +1608,9 @@ nf.ControllerService = (function () {
             $.each(component.descriptors, function(_, descriptor) {
                 if (descriptor.identifiesControllerService === true) {
                     var referencedServiceId = 
component.properties[descriptor.name];
-                    reloadControllerService(referencedServiceId);
+                    if (nf.Common.isDefinedAndNotNull(referencedServiceId) && 
$.trim(referencedServiceId).length > 0) {
+                        reloadControllerService(referencedServiceId);
+                    }
                 }
             });
         },

Reply via email to