This commit is contained in:
Milos Kozak 2018-02-19 23:28:07 +01:00
parent 220c099591
commit 59744fbd1d

View file

@ -184,7 +184,7 @@ public class APSResult {
public long getLatestPredictionsTime() { public long getLatestPredictionsTime() {
long latest = 0; long latest = 0;
try { try {
long startTime = date.getTime(); long startTime = date != null ? date.getTime() : 0;
if (json.has("predBGs")) { if (json.has("predBGs")) {
JSONObject predBGs = json.getJSONObject("predBGs"); JSONObject predBGs = json.getJSONObject("predBGs");
if (predBGs.has("IOB")) { if (predBGs.has("IOB")) {