aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
diff options
context:
space:
mode:
authorsoshial <soshial@gmail.com>2021-10-04 18:58:02 +0200
committersoshial <soshial@gmail.com>2021-10-04 18:58:02 +0200
commit5118f5e281de16f5b17d147da462b6cfb16e4d4d (patch)
treea092c7c0eee3b8836da55f5d3e52b60fefec8b7f /src/main/java/org/traccar/geolocation/OpenCellIdGeolocationProvider.java
parent7bd438a9d86b64bd1339c235c58105408e702de8 (diff)
downloadtrackermap-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.gz
trackermap-server-5118f5e281de16f5b17d147da462b6cfb16e4d4d.tar.bz2
trackermap-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.java2
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") + ")";
}