diff options
author | soshial <soshial@gmail.com> | 2021-10-04 18:58:02 +0200 |
---|---|---|
committer | soshial <soshial@gmail.com> | 2021-10-04 18:58:02 +0200 |
commit | 5118f5e281de16f5b17d147da462b6cfb16e4d4d (patch) | |
tree | a092c7c0eee3b8836da55f5d3e52b60fefec8b7f | |
parent | 7bd438a9d86b64bd1339c235c58105408e702de8 (diff) | |
download | trackermap-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.gz trackermap-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.bz2 trackermap-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.zip |
fix Json decoding error (OpenCellId)
-rw-r--r-- | src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java b/src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java index 3b64a9a14..2535970d3 100644 --- a/src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java +++ b/src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java @@ -50,7 +50,7 @@ public class OpenCellIdGeolocationProvider implements GeolocationProvider { json.getJsonNumber("lon").doubleValue(), 0); } else { if (json.containsKey("error")) { - String errorMessage = json.getJsonString("error").getString(); + String errorMessage = json.getString("error"); if (json.containsKey("code")) { errorMessage += " (" + json.getInt("code") + ")"; } |