config manager: require config group and key when setting configuration

This commit is contained in:
Adam
2021-02-04 16:18:18 -05:00
parent 7b5fb1fb76
commit fc8360f6cc

View File

@@ -507,6 +507,11 @@ public class ConfigManager
public void setConfiguration(String groupName, String profile, String key, String value)
{
if (Strings.isNullOrEmpty(groupName) || Strings.isNullOrEmpty(key))
{
throw new IllegalArgumentException();
}
assert !key.startsWith(RSPROFILE_GROUP + ".");
String wholeKey = getWholeKey(groupName, profile, key);
String oldValue = (String) properties.setProperty(wholeKey, value);