From bea4f66eb187c9646bd2f769573b14ffc83b80af Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Thu, 14 May 2026 16:31:17 +0200 Subject: [PATCH] Fix crash when accessing files in profile dir --- plugins/base/utils/profile-helpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/base/utils/profile-helpers.cpp b/plugins/base/utils/profile-helpers.cpp index 007c0f33..92b14c35 100644 --- a/plugins/base/utils/profile-helpers.cpp +++ b/plugins/base/utils/profile-helpers.cpp @@ -25,6 +25,9 @@ void PopulateProfileSelection(QComboBox *box) std::string GetPathInProfileDir(const char *filePath) { auto path = obs_frontend_get_current_profile_path(); + if (!path) { + return ""; + } std::string result(path); bfree(path); return result + "/" + filePath;