Bug 1137897 - Do not throw exception from nsPluginTag::GetMimeTypes if a plug-in has no MIME-Types. r=bz

This commit is contained in:
Tooru Fujisawa 2015-02-28 13:32:27 +09:00
parent 365c7b30c0
commit 237af26045

View File

@ -116,7 +116,9 @@ CStringArrayToXPCArray(nsTArray<nsCString> & aArray,
{
uint32_t count = aArray.Length();
if (!count) {
return NS_ERROR_NOT_AVAILABLE;
*aResults = nullptr;
*aCount = 0;
return NS_OK;
}
*aResults =