aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-13 17:39:09 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-13 17:39:09 -0700
commitf20ab941671e2325140767da0d5c56187941b3e8 (patch)
tree259dc58c52713b55a1c9d3a8394f2492773fccb0
parenta8e38b74e5fc6789676bf35a9b92594a230e3ad8 (diff)
downloadtrackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.tar.gz
trackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.tar.bz2
trackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.zip
Handle null status
-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;