Forgot null check for checkin of bug 257546

git-svn-id: svn://10.0.0.236/trunk@167046 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com 2004-12-27 16:09:59 +00:00
parent adcb976e59
commit a8dc6429ac

View File

@ -518,7 +518,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
nsRect bounds(0, 0, aRect.width, aRect.height - bottomPinDelta);
// We only need a valid aParent if we have a sheet
if (aInitData->mWindowType != eWindowType_sheet)
if (!aInitData || aInitData->mWindowType != eWindowType_sheet)
aParent = nil;
// init base class