Fix for bug 153930. Patch provided by Yuedong Du<yuedong.du@sun.com>. Do not call GetTypeFromExtension is we don't have an extension. R=ducarroz, SR=bienvenu
This commit is contained in:
Родитель
0b3f6b2a50
Коммит
38003dbcdf
|
@ -2210,7 +2210,7 @@ nsMsgComposeAndSend::AddCompFieldLocalAttachments()
|
|||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
rv = fileUrl->GetFileExtension(fileExt);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
if (NS_SUCCEEDED(rv) && !fileExt.IsEmpty())
|
||||
mimeFinder->GetTypeFromExtension(fileExt.get(), &(m_attachments[newLoc].m_type));
|
||||
}
|
||||
|
||||
|
@ -2221,7 +2221,7 @@ nsMsgComposeAndSend::AddCompFieldLocalAttachments()
|
|||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
rv = fileUrl->GetFileExtension(fileExt);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
if (NS_SUCCEEDED(rv) && !fileExt.IsEmpty())
|
||||
mimeFinder->GetTypeFromExtension(fileExt.get(), &(m_attachments[newLoc].m_type));
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче