From 5e49661ef6b3f5811f354075a16a2d1b9fc0837a Mon Sep 17 00:00:00 2001 From: parveenkumaryadav Date: Sat, 20 Jan 2018 17:40:11 +0530 Subject: NPE bug fix for the Position's serverTime --- src/org/traccar/model/Position.java | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- cgit v1.2.3