From 2ff622ca46bbe8209fb544e90a62c84bbd7bc0b2 Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Fri, 14 Jun 2002 02:09:09 +0000 Subject: [PATCH] bug 116042. Check for a null pointer. r=rods sr=waterson adt=Jaime Rodriguez, Jr. a= Randell Jesup. Fixes quickkeys crash. git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@123284 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsMacWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/widget/src/mac/nsMacWindow.cpp b/mozilla/widget/src/mac/nsMacWindow.cpp index 9fb273107d7..6c80c3a561f 100644 --- a/mozilla/widget/src/mac/nsMacWindow.cpp +++ b/mozilla/widget/src/mac/nsMacWindow.cpp @@ -915,9 +915,11 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool bState) } else #endif - ::HideWindow(mWindowPtr); + if ( mWindowPtr ) { + ::HideWindow(mWindowPtr); } - return NS_OK; + } + return NS_OK; }