From 8fa3e8b038d8f7d8b9b60f75aad23b4cb01e1511 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 21 Aug 2021 23:57:28 +0200 Subject: [PATCH] Fix crash on clicking "Get settings" if source or filter is null --- src/utility.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utility.cpp b/src/utility.cpp index 57428188..91e8b9f6 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -223,6 +223,9 @@ bool compareIgnoringLineEnding(QString &s1, QString &s2) std::string getSourceSettings(OBSWeakSource ws) { + if (!ws) { + return ""; + } auto s = obs_weak_source_get_source(ws); obs_data_t *data = obs_source_get_settings(s); std::string settings = obs_data_get_json(data);