aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-21 09:54:28 +1300
committerGitHub <noreply@github.com>2018-01-21 09:54:28 +1300
commit361799c4683eecfe12a7345395215e16b7541a91 (patch)
tree19e7ee4e67afd52a8dce1599a200a8102f778d25 /src/org/traccar/model
parenta83353fd0b21ae5ff75680e45e3a06b89c4f2de4 (diff)
parent5e49661ef6b3f5811f354075a16a2d1b9fc0837a (diff)
downloadtrackermap-server-361799c4683eecfe12a7345395215e16b7541a91.tar.gz
trackermap-server-361799c4683eecfe12a7345395215e16b7541a91.tar.bz2
trackermap-server-361799c4683eecfe12a7345395215e16b7541a91.zip
Merge pull request #3731 from parveenkumardeeva/master
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() {