Check the proper pointer. r+sr=biesi. No bug

This commit is contained in:
sdwilsh@shawnwilsher.com 2007-07-23 18:14:56 -07:00
parent 24e0e3c1a9
commit a9ea0aa1b3

View File

@ -1486,7 +1486,7 @@ nsExternalHelperAppService::GetProtocolHandlerInfo(const nsACString &aScheme,
// applications which we might need later. For now, just use nsMIMEInfoImpl
// instead of implementating a separate nsIHandlerInfo object.
*aHandlerInfo = GetProtocolInfoFromOS(aScheme).get();
if (!aHandlerInfo) {
if (!(*aHandlerInfo)) {
// Either it knows nothing, or we ran out of memory
return NS_ERROR_FAILURE;
}