diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-21 09:54:28 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-21 09:54:28 +1300 |
commit | 361799c4683eecfe12a7345395215e16b7541a91 (patch) | |
tree | 19e7ee4e67afd52a8dce1599a200a8102f778d25 /src/org/traccar/model/Position.java | |
parent | a83353fd0b21ae5ff75680e45e3a06b89c4f2de4 (diff) | |
parent | 5e49661ef6b3f5811f354075a16a2d1b9fc0837a (diff) | |
download | traccar-server-361799c4683eecfe12a7345395215e16b7541a91.tar.gz traccar-server-361799c4683eecfe12a7345395215e16b7541a91.tar.bz2 traccar-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/Position.java')
-rw-r--r-- | src/org/traccar/model/Position.java | 4 |
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() { |