From e324dbae1d877cd0c91afcce5e4f93bed928cc2b Mon Sep 17 00:00:00 2001 From: "sfraser%netscape.com" Date: Wed, 16 Dec 1998 03:37:56 +0000 Subject: [PATCH] Assert on a null widget Ptr git-svn-id: svn://10.0.0.236/trunk@16488 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/view/src/nsView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/view/src/nsView.cpp b/mozilla/view/src/nsView.cpp index 3670bec54ab..418dfac4da8 100644 --- a/mozilla/view/src/nsView.cpp +++ b/mozilla/view/src/nsView.cpp @@ -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;