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:
parent
adcb976e59
commit
a8dc6429ac
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user