aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authormerabtenei <i.merabtene.gd@gmail.com>2023-05-29 18:07:31 +0100
committermerabtenei <i.merabtene.gd@gmail.com>2023-05-29 18:07:31 +0100
commitd244b4bc4999ba3e3dca607bf797c3f7d7f578ff (patch)
tree81f0be7081058740751d61f85ce2404f666da111 /src/main
parentfb83a98d33ddfab9a6c54c9f94a9a05a8a40f6ea (diff)
downloadtrackermap-server-d244b4bc4999ba3e3dca607bf797c3f7d7f578ff.tar.gz
trackermap-server-d244b4bc4999ba3e3dca607bf797c3f7d7f578ff.tar.bz2
trackermap-server-d244b4bc4999ba3e3dca607bf797c3f7d7f578ff.zip
fix typo: replaced .containsKey with .get
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/model/ExtendedModel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/ExtendedModel.java b/src/main/java/org/traccar/model/ExtendedModel.java
index 0a0923ba1..d5cd094da 100644
--- a/src/main/java/org/traccar/model/ExtendedModel.java
+++ b/src/main/java/org/traccar/model/ExtendedModel.java
@@ -91,7 +91,7 @@ public class ExtendedModel extends BaseModel {
public String getString(String key, String defaultValue) {
if (attributes.containsKey(key)) {
- Object value = attributes.containsKey(key);
+ Object value = attributes.get(key);
return value != null ? value.toString() : null;
} else {
return defaultValue;