From 7fb195bc0bf42202a6e9c8550b451d2c36bb65d6 Mon Sep 17 00:00:00 2001 From: gd Date: Sat, 1 Feb 2025 11:06:47 +0200 Subject: [PATCH] android: Context.cxx - in GetExternalFilesDir removed assert type != nullptr May be null for the root of the files directory. --- src/android/Context.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/android/Context.cxx b/src/android/Context.cxx index 3aa91a487..4d166c6fd 100644 --- a/src/android/Context.cxx +++ b/src/android/Context.cxx @@ -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)