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 /src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java | |
parent | 7bd438a9d86b64bd1339c235c58105408e702de8 (diff) | |
download | traccar-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.gz traccar-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.bz2 traccar-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.zip |
fix Json decoding error (OpenCellId)
Diffstat (limited to 'src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java')
-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") + ")"; } |