diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js index dd37f9f7812..e47b48b7d68 100644 --- a/ambari-web/app/controllers/wizard/step8_controller.js +++ b/ambari-web/app/controllers/wizard/step8_controller.js @@ -503,8 +503,8 @@ App.WizardStep8Controller = Em.Controller.extend(App.AddSecurityConfigs, App.wiz } else { var componentName = component.get('isClient') ? Em.I18n.t('common.client').toUpperCase() : component.get('componentName'); - var hostsLength = this.get('content.slaveComponentHosts') - .findProperty('componentName', componentName).hosts.length; + var component = this.get('content.slaveComponentHosts').findProperty('componentName', componentName); + var hostsLength = component ? component.hosts.length : 0; componentValue = hostsLength + Em.I18n.t('installer.step8.host' + (hostsLength > 1 ? 's' : '')); } }
With regards, Apache Git Services