Browse Source

Fix trim might cause NPE in PropertyUtils (#13853)

3.2.0-release
Wenjun Ruan 2 years ago committed by GitHub
parent
commit
69fc217ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java

3
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/PropertyUtils.java

@ -88,6 +88,9 @@ public class PropertyUtils {
* @return property value
*/
public static String getString(String key) {
if (key == null) {
return null;
}
return properties.getProperty(key.trim());
}

Loading…
Cancel
Save