diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-13 17:39:09 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-13 17:39:09 -0700 |
commit | f20ab941671e2325140767da0d5c56187941b3e8 (patch) | |
tree | 259dc58c52713b55a1c9d3a8394f2492773fccb0 /src/main/java/org/traccar/model/Device.java | |
parent | a8e38b74e5fc6789676bf35a9b92594a230e3ad8 (diff) | |
download | trackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.tar.gz trackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.tar.bz2 trackermap-server-f20ab941671e2325140767da0d5c56187941b3e8.zip |
Handle null status
Diffstat (limited to 'src/main/java/org/traccar/model/Device.java')
-rw-r--r-- | src/main/java/org/traccar/model/Device.java | 2 |
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; |