android: Context.cxx - in GetExternalFilesDir removed assert type != nullptr

May be null for the root of the files directory.
This commit is contained in:
gd 2025-02-01 11:06:47 +02:00 committed by Max Kellermann
parent 2fabaa2e95
commit 7fb195bc0b

@ -30,8 +30,6 @@ Context::Initialise(JNIEnv *env) noexcept
AllocatedPath
Context::GetExternalFilesDir(JNIEnv *env, const char *type) noexcept
{
assert(type != nullptr);
jobject file = env->CallObjectMethod(Get(), getExternalFilesDir_method,
Java::String::Optional(env, type).Get());
if (Java::DiscardException(env) || file == nullptr)