aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Config.java')
-rw-r--r--src/org/traccar/Config.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/Config.java b/src/org/traccar/Config.java
index 414ccb6d3..e9b17a33b 100644
--- a/src/org/traccar/Config.java
+++ b/src/org/traccar/Config.java
@@ -15,8 +15,6 @@
*/
package org.traccar;
-import org.apache.commons.lang3.StringUtils;
-
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
@@ -56,7 +54,7 @@ public class Config {
public String getString(String key) {
String envName = key.toUpperCase().replaceAll("\\.", "_");
String envValue = System.getenv(envName);
- if (StringUtils.isNotBlank(envValue)) {
+ if (envValue != null && !envValue.isEmpty()) {
return envValue;
}
return properties.getProperty(key);