From f1638b12383b8cc382c666e3b52c8e91c989114c Mon Sep 17 00:00:00 2001 From: Anders Widell Date: Wed, 29 May 2002 19:11:01 +0000 Subject: [PATCH] Fixed null pointer segfault svn path=/trunk/kdebase/kwin/; revision=158475 --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 26a1fd5f3d..62f6efb78f 100644 --- a/client.cpp +++ b/client.cpp @@ -748,7 +748,8 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial ) // if client has initial state set to Iconic and is transient with a parent // window that is not Iconic, set init_state to Normal if ((init_state == IconicState) && isTransient() && transientFor() != 0) { - if(!workspace()->findClient(transientFor())->isIconified()) { + Client* client = workspace()->findClient(transientFor()); + if(client == 0 || !client->isIconified()) { init_state = NormalState; } }