fix NPE
This commit is contained in:
parent
220c099591
commit
59744fbd1d
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||||
|
|
Loading…
Reference in a new issue