forked from mirrors/gecko-dev
Bug 535990: Null check at PL_DHashTableOperate to avoid crashing r=bsmedberg
This commit is contained in:
parent
2bf8037b2b
commit
48a4c6bcf7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue