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/branches/MOZILLA_1_8_BRANCH@221320 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bienvenu%nventure.com
2007-03-05 18:26:57 +00:00
parent 3a5f369b0a
commit d63e73c3d6

View File

@@ -383,6 +383,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)))