aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model/Extensible.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/model/Extensible.java')
-rw-r--r--src/org/traccar/model/Extensible.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/model/Extensible.java b/src/org/traccar/model/Extensible.java
index 40a286987..f59b3d22e 100644
--- a/src/org/traccar/model/Extensible.java
+++ b/src/org/traccar/model/Extensible.java
@@ -53,7 +53,7 @@ public abstract class Extensible extends Message {
}
public void add(Map.Entry<String, Object> entry) {
- if (entry.getValue() != null) {
+ if (entry != null && entry.getValue() != null) {
attributes.put(entry.getKey(), entry.getValue());
}
}