fix for 232233 crash in SetFileXPPref if value is null sr=mscott
git-svn-id: svn://10.0.0.236/trunk@151873 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a85f34ec6b
commit
ad2b85260b
@ -506,6 +506,7 @@ NS_IMETHODIMP nsPref::SetFileXPref(const char *pref, nsILocalFile *value)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
NS_ENSURE_ARG_POINTER(value);
|
||||
nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
rv = prefBranch->SetComplexValue(pref, NS_GET_IID(nsILocalFile), value);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user