diff options
author | Abyss777 <abyss@fox5.ru> | 2017-09-07 11:33:22 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-09-07 11:33:22 +0500 |
commit | 9ebd2a934a5ca3a61863f839733bff321ba30296 (patch) | |
tree | 265352fda7b704c240018f57e53c6626f166470d /src/org/traccar/model | |
parent | f0578c7b5f8737e019a9cf05935d2caaa940f0ca (diff) | |
download | traccar-server-9ebd2a934a5ca3a61863f839733bff321ba30296.tar.gz traccar-server-9ebd2a934a5ca3a61863f839733bff321ba30296.tar.bz2 traccar-server-9ebd2a934a5ca3a61863f839733bff321ba30296.zip |
Handle correct and incorrect attribute types
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/ExtendedModel.java | 2 |
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; } |