Quellcode durchsuchen

AMBARI-12841. Add Service Wizard: Customize Services page doesn't load (rzang)

Richard Zang vor 10 Jahren
Ursprung
Commit
2ba8d67a4d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      ambari-web/app/controllers/wizard/step7_controller.js

+ 1 - 1
ambari-web/app/controllers/wizard/step7_controller.js

@@ -978,7 +978,7 @@ App.WizardStep7Controller = Em.Controller.extend(App.ServerValidatorMixin, App.E
       }
       var propertyName = propertyPrefix + '_existing_' + dbPrefix + '_host';
       var existingDBConfig = configs.findProperty('name', propertyName);
-      if (!existingDBConfig.value)
+      if (existingDBConfig && !existingDBConfig.value)
         existingDBConfig.value = existingDBConfig.savedValue = configs.findProperty('name', dbHostName).value;
     }, this);
   },