aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/ExtendedModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/ExtendedModel.java')
-rw-r--r--src/org/traccar/model/ExtendedModel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/model/ExtendedModel.java b/src/org/traccar/model/ExtendedModel.java
index a4bf00e70..2ce503eea 100644
--- a/src/org/traccar/model/ExtendedModel.java
+++ b/src/org/traccar/model/ExtendedModel.java
@@ -100,7 +100,7 @@ public class ExtendedModel extends BaseModel {
public boolean getBoolean(String key) {
if (attributes.containsKey(key)) {
- return Boolean.parseBoolean(attributes.get(key).toString());
+ return (Boolean) attributes.get(key);
} else {
return false;
}