Bug 5746: Check for null.

git-svn-id: svn://10.0.0.236/trunk@31720 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pollmann%netscape.com 1999-05-15 01:36:39 +00:00
parent 4aeb67c89b
commit c51e86bc1c

View File

@ -801,6 +801,8 @@ NS_IMETHODIMP nsView :: HandleEvent(nsGUIEvent *event, PRUint32 aEventFlags,
nsIView *pKid;
GetChild(cnt, pKid);
if (!pKid) break;
pKid->GetBounds(trect);
if (trect.Contains(x, y))