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.java4
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) {