Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,10 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
category = config.getCategory();
}

if (value == null) {
throw new InvalidParameterValueException(String.format("The new value for the [%s] configuration must be given.", name));
}

validateIpAddressRelatedConfigValues(name, value);
validateConflictingConfigValue(name, value);

Expand All @@ -1038,10 +1042,6 @@ public Configuration updateConfiguration(final UpdateCfgCmd cmd) throws InvalidP
throw new CloudRuntimeException("Only Root Admin is allowed to edit this configuration.");
}

if (value == null) {
return _configDao.findByName(name);
}

ConfigKey.Scope scope = null;
Long id = null;
int paramCountCheck = 0;
Expand Down
Loading