From 576c0417541dba7a709ac536df64debcd1d0f926 Mon Sep 17 00:00:00 2001 From: tobrun Date: Tue, 29 May 2018 15:06:17 +0200 Subject: [PATCH] [android] - null check access token in filesource initializer --- platform/android/src/file_source.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/android/src/file_source.cpp b/platform/android/src/file_source.cpp index 58a91f6cf00..2a6cac3b025 100644 --- a/platform/android/src/file_source.cpp +++ b/platform/android/src/file_source.cpp @@ -23,7 +23,9 @@ FileSource::FileSource(jni::JNIEnv& _env, std::make_unique(_env, assetManager)); // Set access token - fileSource->setAccessToken(jni::Make(_env, accessToken)); + if (accessToken) { + fileSource->setAccessToken(jni::Make(_env, accessToken)); + } } FileSource::~FileSource() {