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:
parent
0e0e29c9c8
commit
e324dbae1d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user