I crashed here, now I can reproduce it. add some bulletproofing and an assertion so I can catch it

next time.  no bug.  sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@91838 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com 2001-04-10 05:54:28 +00:00
parent 2071e29acb
commit 06fc400d41

View File

@ -820,7 +820,8 @@ nsPop3Protocol::Error(PRInt32 err_code)
nsCOMPtr<nsIMsgWindow> msgWindow;
nsCOMPtr<nsIPrompt> dialog;
rv = mailnewsUrl->GetMsgWindow(getter_AddRefs(msgWindow));
if (NS_SUCCEEDED(rv))
NS_ASSERTION(NS_SUCCEEDED(rv) && msgWindow, "no msg window");
if (NS_SUCCEEDED(rv) && msgWindow)
{
rv = msgWindow->GetPromptDialog(getter_AddRefs(dialog));
if (NS_SUCCEEDED(rv))