diff --git a/workspace.cpp b/workspace.cpp index dde3ce83de..2bb1a8059f 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -53,7 +53,7 @@ extern int screen_number; Workspace *Workspace::_self = 0; -KProcess* kompmgr; +KProcess* kompmgr = 0; bool allowKompmgrRestart = TRUE; @@ -2359,7 +2359,7 @@ void Workspace::stopKompmgr() bool Workspace::kompmgrIsRunning() { - return kompmgr->isRunning(); + return kompmgr && kompmgr->isRunning(); } void Workspace::unblockKompmgrRestart()