Commit 9018b2ff authored by Oleg Solovyov's avatar Oleg Solovyov 🐴
Browse files

Fix crash

CCBUG: 424252
parent a9249c79
Pipeline #123399 passed with stage
in 1 minute and 1 second
......@@ -512,7 +512,7 @@ void MainWindow::slotActivePartChanged(KParts::Part *part)
void MainWindow::slotNewClicked()
{
if (!mCurrentPlugin->newActions().isEmpty()) {
if (!mCurrentPlugin || !mCurrentPlugin->newActions().isEmpty()) {
mCurrentPlugin->newActions().at(0)->trigger();
} else {
for (KontactInterface::Plugin *plugin : std::as_const(mPlugins)) {
......
Supports Markdown
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