--- kdebase/kwin/tabbox.cpp 2006/02/27 09:54:03 514048 +++ kdebase/kwin/tabbox.cpp 2006/03/31 10:42:59 524823 @@ -1152,6 +1152,8 @@ */ Client* Workspace::nextFocusChainClient( Client* c ) const { + if ( !c ) + return 0; int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop(); if ( focus_chain[desktop].isEmpty() ) return 0; @@ -1170,6 +1172,8 @@ */ Client* Workspace::previousFocusChainClient( Client* c ) const { + if ( !c ) + return 0; int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop(); if ( focus_chain[desktop].isEmpty() ) return 0;