aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorparveenkumaryadav <parveenkumardeeva@gmail.com>2018-01-20 17:40:11 +0530
committerparveenkumaryadav <parveenkumardeeva@gmail.com>2018-01-20 17:40:11 +0530
commit5e49661ef6b3f5811f354075a16a2d1b9fc0837a (patch)
tree19e7ee4e67afd52a8dce1599a200a8102f778d25 /src/org/traccar/model
parenta83353fd0b21ae5ff75680e45e3a06b89c4f2de4 (diff)
downloadtrackermap-server-5e49661ef6b3f5811f354075a16a2d1b9fc0837a.tar.gz
trackermap-server-5e49661ef6b3f5811f354075a16a2d1b9fc0837a.tar.bz2
trackermap-server-5e49661ef6b3f5811f354075a16a2d1b9fc0837a.zip
NPE bug fix for the Position's serverTime
Diffstat (limited to 'src/org/traccar/model')
-rw-r--r--src/org/traccar/model/Position.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/model/Position.java b/src/org/traccar/model/Position.java
index 4f78867c2..2e3099774 100644
--- a/src/org/traccar/model/Position.java
+++ b/src/org/traccar/model/Position.java
@@ -131,6 +131,10 @@ public class Position extends Message {
public static final String ALARM_TAMPERING = "tampering";
public static final String ALARM_REMOVING = "removing";
+ public Position() {
+ this.serverTime = new Date();
+ }
+
private String protocol;
public String getProtocol() {