Browse Source

Trim profile names in array (#469)

* Trim profile names in array.  Fixes #460

* Use tokenizeToStringArray
pull/499/head
Ryan Baxter 6 years ago committed by GitHub
parent
commit
b91e2ab731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java

2
spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/config/PropertySourceBootstrapConfiguration.java

@ -222,7 +222,7 @@ public class PropertySourceBootstrapConfiguration implements @@ -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, ",");
}
}

Loading…
Cancel
Save