{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2919","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2919/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2919/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/2919/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/2919","id":114925285,"number":2919,"title":"MapView.setAccessToken() should trim whitespace","user":{"login":"1ec5","id":1231218,"avatar_url":"https://avatars.githubusercontent.com/u/1231218?v=3","gravatar_id":"","url":"https://api.github.com/users/1ec5","html_url":"https://github.com/1ec5","followers_url":"https://api.github.com/users/1ec5/followers","following_url":"https://api.github.com/users/1ec5/following{/other_user}","gists_url":"https://api.github.com/users/1ec5/gists{/gist_id}","starred_url":"https://api.github.com/users/1ec5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1ec5/subscriptions","organizations_url":"https://api.github.com/users/1ec5/orgs","repos_url":"https://api.github.com/users/1ec5/repos","events_url":"https://api.github.com/users/1ec5/events{/privacy}","received_events_url":"https://api.github.com/users/1ec5/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-03T22:30:18Z","updated_at":"2015-11-03T22:30:18Z","closed_at":null,"body":"Per #2912, [`MapView.setAccessToken()`](https://github.com/mapbox/mapbox-gl-native/blob/2b5b6fad96a38837da21300e8541a7c9a69c19a5/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/views/MapView.java#L1564) should trim whitespace from either end before validating the access token. It doesn’t look like `MapView` needs to do any style URL validation independently of mbgl, since it traffics in `String`s the whole way.\r\n\r\n/cc @ljbade"}}