Commit 74753128 authored by Alex Merry's avatar Alex Merry

Fix a KCM crash when no file manager is installed

If no file manager is installed, the componentchooser KCM would attempt
to dereference a null pointer.

BUG: 422819
FIXED-IN: 5.19.3
parent b460e5b1
......@@ -97,7 +97,7 @@ void CfgFileManager::load(KConfig *)
}
// in case of a service not associated with FileManager Category
if (m_currentIndex == -1 && !fileManager->storageId().isEmpty()) {
if (m_currentIndex == -1 && fileManager && !fileManager->storageId().isEmpty()) {
const KService::Ptr service = KService::serviceByStorageId(fileManager->storageId());
const QString icon = !service->icon().isEmpty() ? service->icon() : QStringLiteral("application-x-shellscript");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment