From b084313616e061d9d8efd6dcd0bb0c3c97631e71 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Wed, 26 Nov 2014 21:01:59 +1100 Subject: Fix access token check --- android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android') diff --git a/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java b/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java index 453507b37b..f72ac95e69 100644 --- a/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java +++ b/android/java/lib/src/main/java/com/mapbox/mapboxgl/lib/MapView.java @@ -328,7 +328,7 @@ public class MapView extends SurfaceView { private void validateAccessToken(String accessToken) { - if (accessToken.isEmpty() | (!getAccessToken().startsWith("pk.") && !getAccessToken().startsWith("sk."))) { + if (accessToken.isEmpty() | (!accessToken.startsWith("pk.") && !accessToken.startsWith("sk."))) { throw new RuntimeException("Using MapView requires setting a valid access token. See the README.md"); } } -- cgit v1.2.1