diff --git a/src/kcmultidialog.cpp b/src/kcmultidialog.cpp --- a/src/kcmultidialog.cpp +++ b/src/kcmultidialog.cpp @@ -99,16 +99,15 @@ currentModule = modules[i].kcm; } } - Q_ASSERT(currentModule); // For some reason the KCModuleQml modules handle their own margin internally // to match that we need to adjust the spacing of our page widget // by removing the spacing between the left pane and the edge, and the layout on the right // when we reduce the layout on the right we need to pad the buttons back to match // TODO KF6 Fix this situation. - if (currentModule->realModule() && currentModule->realModule()->inherits("KCModuleQml")) { + if (currentModule && currentModule->realModule() && currentModule->realModule()->inherits("KCModuleQml")) { bool padHackLeft = false; bool padHackRight = false; if (q->pageWidget()->model()->rowCount() < 2) {