summaryrefslogtreecommitdiff
path: root/platform/android/src
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-07-09 12:36:28 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-07-11 11:02:24 +0200
commit4348169aacfe71eef77a7eb54c1790848d03fa9d (patch)
treebb4e75ae26d9862788b99e028bbecbbb5ea2b694 /platform/android/src
parent348c437c0a3fb177dc53b2a0b0a64e422964b82f (diff)
downloadqtlocation-mapboxgl-4348169aacfe71eef77a7eb54c1790848d03fa9d.tar.gz
[android] allow setting a null access token in the runtime
Diffstat (limited to 'platform/android/src')
-rw-r--r--platform/android/src/file_source.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/src/file_source.cpp b/platform/android/src/file_source.cpp
index ba5f18dbc4..05b57e5d1c 100644
--- a/platform/android/src/file_source.cpp
+++ b/platform/android/src/file_source.cpp
@@ -48,7 +48,7 @@ jni::Local<jni::String> FileSource::getAccessToken(jni::JNIEnv& env) {
}
void FileSource::setAccessToken(jni::JNIEnv& env, const jni::String& token) {
- fileSource->setAccessToken(jni::Make<std::string>(env, token));
+ fileSource->setAccessToken(token ? jni::Make<std::string>(env, token) : "");
}
void FileSource::setAPIBaseUrl(jni::JNIEnv& env, const jni::String& url) {