aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/traccar/model/Device.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/Device.java b/src/main/java/org/traccar/model/Device.java
index 501c7e1c0..f3debd1f2 100644
--- a/src/main/java/org/traccar/model/Device.java
+++ b/src/main/java/org/traccar/model/Device.java
@@ -57,7 +57,7 @@ public class Device extends GroupedModel {
@QueryIgnore
public void setStatus(String status) {
- this.status = status.trim();
+ this.status = status != null ? status.trim() : null;
}
private Date lastUpdate;