Trim profile names in array (#469)

* Trim profile names in array.  Fixes #460

* Use tokenizeToStringArray
This commit is contained in:
Ryan Baxter
2019-01-18 16:12:52 -05:00
committed by GitHub
parent 2b4c30c4b2
commit b91e2ab731

View File

@@ -222,7 +222,7 @@ public class PropertySourceBootstrapConfiguration implements
private String[] getProfilesForValue(Object property) {
final String value = (property == null ? null : property.toString());
return StringUtils.commaDelimitedListToStringArray(value);
return property == null ? new String[0] : StringUtils.tokenizeToStringArray(value, ",");
}
}