From f79ff6c10c8b3b3f0f529ea56b39eaa753ddd680 Mon Sep 17 00:00:00 2001 From: Alexis Durgnat <alexis.durgnat@etu.hesge.ch> Date: Sat, 2 Feb 2019 19:51:06 +0100 Subject: [PATCH] Ca marche mieux --- src/main/java/ch/hepia/api/transport/Stop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/hepia/api/transport/Stop.java b/src/main/java/ch/hepia/api/transport/Stop.java index 2107fd9..b5c2193 100644 --- a/src/main/java/ch/hepia/api/transport/Stop.java +++ b/src/main/java/ch/hepia/api/transport/Stop.java @@ -106,7 +106,7 @@ public class Stop implements Serializable { String[] keys = new String[10]; datas.keySet().toArray(keys); String type = keys[4]; - JSONObject locationJSON = datas.isNull("type") ? new JSONObject() : datas.getJSONObject(type); + JSONObject locationJSON = datas.isNull("location") ? new JSONObject() : datas.getJSONObject("location"); Location.LocationBuilder location = new Location.LocationBuilder(locationJSON, type); DateFormat formatter = new SimpleDateFormat("kk:mm:ss"); -- GitLab