diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-08 05:44:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-08 05:44:29 +1200 |
commit | 179373c6b3d619922a5daf98220ffe831f56fba2 (patch) | |
tree | 8107b91c0c3c316295ae6041c78bcdff26c5a329 /src/org/traccar/model | |
parent | 3aebd92cc3781b417ded6260d1300434b1418e7e (diff) | |
download | traccar-server-179373c6b3d619922a5daf98220ffe831f56fba2.tar.gz traccar-server-179373c6b3d619922a5daf98220ffe831f56fba2.tar.bz2 traccar-server-179373c6b3d619922a5daf98220ffe831f56fba2.zip |
Improve TRV decoder logic
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r-- | src/org/traccar/model/ExtendedModel.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/model/ExtendedModel.java b/src/org/traccar/model/ExtendedModel.java index 2ce503eea..8353d0e66 100644 --- a/src/org/traccar/model/ExtendedModel.java +++ b/src/org/traccar/model/ExtendedModel.java @@ -31,7 +31,9 @@ public class ExtendedModel extends BaseModel { } public void set(String key, Boolean value) { - attributes.put(key, value); + if (value != null) { + attributes.put(key, value); + } } public void set(String key, Byte value) { |