diff options
author | Anton Tananaev <anton@traccar.org> | 2022-09-05 10:25:34 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-09-05 10:25:34 -0700 |
commit | fa78acf7876851e6e15e116ebe25f2f65a28fea0 (patch) | |
tree | 73ebb48a10d8e8792aab8aa41a5aa2ead2909b53 /src/main/java/org | |
parent | d81296ccc31fd0528758a49d81432535141061bc (diff) | |
download | trackermap-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.java | 3 |
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(); } } |