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
This commit is contained in:
sspitzer%netscape.com 2001-04-10 05:54:28 +00:00
Родитель e938b93033
Коммит 4d8bebfe1c
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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))