diff --git a/src/libs/utils/theme/theme.cpp b/src/libs/utils/theme/theme.cpp index a64b804d070..645550261f7 100644 --- a/src/libs/utils/theme/theme.cpp +++ b/src/libs/utils/theme/theme.cpp @@ -76,7 +76,7 @@ void setCreatorTheme(Theme *theme) #ifdef Q_OS_MACOS // Match the native UI theme and palette with the creator // theme by forcing light aqua for light creator themes. - if (!theme->flag(Theme::DarkUserInterface)) + if (theme && !theme->flag(Theme::DarkUserInterface)) Internal::forceMacOSLightAquaApperance(); #endif