android: Context.cxx - in GetExternalFilesDir removed assert type != nullptr
May be null for the root of the files directory.
This commit is contained in:
parent
2fabaa2e95
commit
7fb195bc0b
@ -30,8 +30,6 @@ Context::Initialise(JNIEnv *env) noexcept
|
|||||||
AllocatedPath
|
AllocatedPath
|
||||||
Context::GetExternalFilesDir(JNIEnv *env, const char *type) noexcept
|
Context::GetExternalFilesDir(JNIEnv *env, const char *type) noexcept
|
||||||
{
|
{
|
||||||
assert(type != nullptr);
|
|
||||||
|
|
||||||
jobject file = env->CallObjectMethod(Get(), getExternalFilesDir_method,
|
jobject file = env->CallObjectMethod(Get(), getExternalFilesDir_method,
|
||||||
Java::String::Optional(env, type).Get());
|
Java::String::Optional(env, type).Get());
|
||||||
if (Java::DiscardException(env) || file == nullptr)
|
if (Java::DiscardException(env) || file == nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user