Bug 535990: Null check at PL_DHashTableOperate to avoid crashing r=bsmedberg

This commit is contained in:
Mike Hommey 2010-02-20 08:55:34 -05:00
parent 2bf8037b2b
commit 48a4c6bcf7

View file

@ -790,7 +790,7 @@ PRBool
PREF_PrefIsLocked(const char *pref_name)
{
PRBool result = PR_FALSE;
if (gIsAnyPrefLocked) {
if (gIsAnyPrefLocked && gHashTable.ops) {
PrefHashEntry* pref = pref_HashTableLookup(pref_name);
if (pref && PREF_IS_LOCKED(pref))
result = PR_TRUE;