Bug 1101756 - Add a null check to PrincipalToPrincipalInfo, r=khuey.

This commit is contained in:
Ben Turner 2014-12-04 10:12:47 -08:00
parent e15f8bae9a
commit abc1289811

View File

@ -129,6 +129,10 @@ PrincipalToPrincipalInfo(nsIPrincipal* aPrincipal,
return rv;
}
if (NS_WARN_IF(!uri)) {
return NS_ERROR_FAILURE;
}
nsCString spec;
rv = uri->GetSpec(spec);
if (NS_WARN_IF(NS_FAILED(rv))) {