fix crash doing a save w/o an editor in the compose window, sr=mscott 372705 and perhaps 372706

git-svn-id: svn://10.0.0.236/trunk@221320 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com 2007-03-05 18:26:57 +00:00
parent 951baeca41
commit 59edf89363

View File

@ -388,6 +388,8 @@ nsresult nsMsgCompose::ResetUrisForEmbeddedObjects()
PRUint32 i;
nsCOMPtr<nsIEditorMailSupport> mailEditor (do_QueryInterface(m_editor));
if (!mailEditor)
return NS_ERROR_FAILURE;
nsresult rv = mailEditor->GetEmbeddedObjects(getter_AddRefs(aNodeList));
if ((NS_FAILED(rv) || (!aNodeList)))