mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 02:01:53 -07:00
crashReporter: avoid segfault in deref plugin system
This commit is contained in:
@@ -48,7 +48,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
|||||||
|
|
||||||
finalCrashReport += getFormat("Version: %s\n\n", GIT_COMMIT_HASH);
|
finalCrashReport += getFormat("Version: %s\n\n", GIT_COMMIT_HASH);
|
||||||
|
|
||||||
if (!g_pPluginSystem->getAllPlugins().empty()) {
|
if (g_pPluginSystem && !g_pPluginSystem->getAllPlugins().empty()) {
|
||||||
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
||||||
|
|
||||||
for (auto& p : g_pPluginSystem->getAllPlugins()) {
|
for (auto& p : g_pPluginSystem->getAllPlugins()) {
|
||||||
|
Reference in New Issue
Block a user