aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-05 10:25:34 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-05 10:25:34 -0700
commitfa78acf7876851e6e15e116ebe25f2f65a28fea0 (patch)
tree73ebb48a10d8e8792aab8aa41a5aa2ead2909b53 /src/main/java/org
parentd81296ccc31fd0528758a49d81432535141061bc (diff)
downloadtrackermap-server-fa78acf7876851e6e15e116ebe25f2f65a28fea0.tar.gz
trackermap-server-fa78acf7876851e6e15e116ebe25f2f65a28fea0.tar.bz2
trackermap-server-fa78acf7876851e6e15e116ebe25f2f65a28fea0.zip
Return default string value
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/notification/PropertiesProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/notification/PropertiesProvider.java b/src/main/java/org/traccar/notification/PropertiesProvider.java
index 4ffad432c..91887b5d4 100644
--- a/src/main/java/org/traccar/notification/PropertiesProvider.java
+++ b/src/main/java/org/traccar/notification/PropertiesProvider.java
@@ -37,7 +37,8 @@ public class PropertiesProvider {
if (config != null) {
return config.getString(key);
} else {
- return extendedModel.getString(key.getKey());
+ String result = extendedModel.getString(key.getKey());
+ return result != null ? result : key.getDefaultValue();
}
}