From 17c6d00009573d50269ee88575eac20bdfb444ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 24 Aug 2006 20:45:22 +0000 Subject: [PATCH] Parameter "window" is now allowed to be NULL (this fixes a crashing bug I introduced earlier). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18617 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/WindowLayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/WindowLayer.cpp b/src/servers/app/WindowLayer.cpp index d0b7c6b029..7b65c54020 100644 --- a/src/servers/app/WindowLayer.cpp +++ b/src/servers/app/WindowLayer.cpp @@ -1516,7 +1516,7 @@ WindowLayer::RemoveFromSubset(WindowLayer* window) bool WindowLayer::HasInSubset(const WindowLayer* window) const { - if (fFeel == window->Feel() || fFeel == B_NORMAL_WINDOW_FEEL) + if (window == NULL || fFeel == window->Feel() || fFeel == B_NORMAL_WINDOW_FEEL) return false; // we have a few special feels that have a fixed order