зеркало из https://github.com/mozilla/pjs.git
follow on fix to 387712, fix crash saving messages due to null listner, patch by kreeger, r/sr=bienvenu
This commit is contained in:
Родитель
c65d008da2
Коммит
0d0dbce718
|
@ -1762,7 +1762,8 @@ nsSaveMsgListener::Cancel(nsresult status)
|
|||
NS_IMETHODIMP
|
||||
nsSaveMsgListener::OnStartRunningUrl(nsIURI* url)
|
||||
{
|
||||
mListener->OnStartRunningUrl(url);
|
||||
if (mListener)
|
||||
mListener->OnStartRunningUrl(url);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -1805,7 +1806,8 @@ done:
|
|||
if (killSelf)
|
||||
Release(); // no more work needs to be done; kill ourself
|
||||
|
||||
mListener->OnStopRunningUrl(url, exitCode);
|
||||
if (mListener)
|
||||
mListener->OnStopRunningUrl(url, exitCode);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче