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;