Assert on a null widget Ptr

git-svn-id: svn://10.0.0.236/trunk@16488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sfraser%netscape.com 1998-12-16 03:37:56 +00:00
parent 0e0e29c9c8
commit e324dbae1d

View File

@ -175,6 +175,8 @@ nsIView* nsView::GetViewFor(nsIWidget* aWidget)
nsIView* view = nsnull;
void* clientData;
NS_PRECONDITION(nsnull != aWidget, "null widget ptr");
// The widget's client data points back to the owning view
if (NS_SUCCEEDED(aWidget->GetClientData(clientData))) {
view = (nsIView*)clientData;